View as Markdown

SDK reference · Python SDK

prov.trace.inferences

prov.trace.inferences in the Python SDK: 2 methods. A run's activation profile, masked through the one chokepoint.

Methods

profile

prov.trace.inferences.profile(trace_id: str, pattern: Optional[str] = …) -> Any

Calls GET /v1/trace/inferences/{id}/profile.

compute_profile

prov.trace.inferences.compute_profile(trace_id: str, top_k: Optional[int] = …, messages: Optional[list] = …) -> Any

Compute one now (metered trace_profile).

Calls POST /v1/trace/inferences/{id}/profile.

Was this page helpful? Send us feedback

LLM? Read llms.txt.