SDK reference · Python SDK

prov.trace.guard_tool

prov.trace.guard_tool in Python SDK. Assess action and run fn only on allow; when Provenance can't answer, pay, send and delete never run, write is blocked and read runs unchecked (on_unavailable changes the last two).

Signature

prov.trace.guard_tool(action: dict, fn: Any, **opts: Any = …) -> Any

Parameters

actiondictRequired
fnAnyRequired
**optsAny

Returns

Any

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.