Python agents
Instrument the agent you already run.
Use the Python SDK to record execution spans, tool results, supported model content and audit events. Start with the included example; it needs no model account.
OPEN THE GUIDEpython3 -m venv .venv
. .venv/bin/activate
pip install -e ./sdk/python
export FACT0_BASE_URL=http://localhost:8000
# Set FACT0_API_KEY to your local key.
python examples/local-python.pyThe example includes a nested execution, a successful tool and a handled failure.