Metadata-Version: 2.4
Name: sovara
Version: 0.11.1
Summary: Give Python agents your team's domain knowledge with Sovara.
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

Sovara helps teams manage domain knowledge and put it to work in AI agents.
Capture business rules, expert guidance, and lessons from experience in a shared
knowledge base. Deliver relevant knowledge to agents as they work, review how
they use it, and improve it together.

Use this SDK to connect your Python agents to Sovara.

Knowledge is stored as lessons: guidance paired with when an agent should use it.
Share customer-support policies, operational procedures, or domain-specific
decision rules across agents.

```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()
```

[Enable knowledge injection](https://docs.sovara-labs.com/sovaradb/auto-injection)
to apply your team's lessons to supported model calls. Inspect recorded runs to
see which lessons were used.

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

Requires a Sovara server compatible with this SDK. The server is `base_url`, else
`SOVARA_SERVER_URL`, else the server from `sovara login`.

[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)

## API keys

Set `SOVARA_API_KEY` or pass `api_key` to `SovaraClient`.
See the [API-key guide](https://docs.sovara-labs.com/get-started/installation#api-keys)
for setup and permissions.
