Metadata-Version: 2.4
Name: sovara
Version: 0.10.0
Summary: Python SDK for Sovara agent observability and runtime instrumentation
Project-URL: Documentation, https://docs.sovara-labs.com
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: filelock
Requires-Dist: flatten_dict
Requires-Dist: flatten_json
Requires-Dist: httpx
Requires-Dist: pydantic>=2.12
Provides-Extra: examples
Requires-Dist: openai; extra == "examples"
Requires-Dist: anthropic; extra == "examples"
Requires-Dist: openai-agents; extra == "examples"
Requires-Dist: google-genai; extra == "examples"

# Sovara Python SDK

Record supported LLM, MCP and tool calls, logs and custom spans.

```bash
uv add sovara
```

```python
import sovara
from sovara import SovaraClient

sovara.auto_instrument()  # Before creating provider clients.
client = SovaraClient(project_name="My Project")
with client.trace("support-agent", trace_id="conversation-123"):
    with client.turn(turn_input="Hello"):
        run_agent()
```

- `auto_instrument()`: records provider calls (`httpx`, `requests`, `urllib3`, `aiohttp`),
  MCP calls and Google ADK tools.
- `trace()`, `turn()`, `subtrace()`: recording, interaction and child work.
- `@trace`, `start_step()`, `record_step()`: calls that aren't recorded automatically.
- `open_recording()` / `resume_recording()`: share one recording across processes.
- `sovara.integration`: building blocks for integration packages.

Framework integrations are separate packages: `sovara-langchain`, `sovara-openai-agents` and
`sovara-claude-code` ([integrations](https://docs.sovara-labs.com/integrations/overview)).

Requires an exec server with runner-api 6. The server is `base_url`, else
`SOVARA_SERVER_URL`, else the server from `sovara login`, else
`http://127.0.0.1:5960`.

[Quickstart](https://docs.sovara-labs.com/sdks/python/quickstart) ·
[Usage](https://docs.sovara-labs.com/sdks/python/use-the-sdk) ·
[API](https://docs.sovara-labs.com/sdks/python/api-reference) ·
[Provider compatibility](COMPATIBILITY.md) ·
[Release policy](../README.md#release-surfaces)
