SDK reference · Python SDK

prov.trace.guard

prov.trace.guard in Python SDK. Wrap fn so it only sees a completion the account's Trace rules let through.

Signature

prov.trace.guard(fn: Any, thresholds: Optional[dict] = …, session: Optional[dict] = …, preflight: Optional[bool] = …, predict: Optional[list] = …) -> Any

Parameters

fnAnyRequired
thresholdsOptional[dict]
sessionOptional[dict]
preflightOptional[bool]
predictOptional[list]

Returns

Any

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.