Metadata-Version: 2.4
Name: fact0-sdk
Version: 1.0.2
Summary: Fact0 SDK — universal fact layer with tamper-evident audit log and execution telemetry for AI agents
Author: Fact0
License-Expression: MIT
Project-URL: Homepage, https://fact0.io
Project-URL: Documentation, https://docs.fact0.io
Project-URL: Repository, https://github.com/fact0-ai/fact0
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pydantic<3,>=2.6
Requires-Dist: requests<3,>=2.31
Requires-Dist: httpx<1,>=0.27
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-mock>=3.12; extra == "dev"
Requires-Dist: mypy>=1.8; extra == "dev"
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.2; extra == "langchain"
Provides-Extra: fastapi
Requires-Dist: fastapi>=0.110; extra == "fastapi"
Requires-Dist: starlette>=0.36; extra == "fastapi"

# fact0

Python SDK for [Fact0](https://fact0.io) — the universal fact layer with tamper-evident audit logs and execution telemetry for AI agents.

```bash
pip install fact0-sdk
```

```python
import fact0

client = fact0.Client(api_key="alk_live_...")

client.audit.log(
    actor={"id": "user_123", "type": "human"},
    action="document.delete",
    resource={"id": "doc_456", "type": "document"},
    outcome="success",
)

with client.telemetry.execution(agent_id="bot-1") as ex:
    with ex.span("tool.search", span_type="TOOL_CALL") as span:
        span.complete(output={"hits": 3})
```

Docs: [docs.fact0.io](https://docs.fact0.io)
