Metadata-Version: 2.5
Name: contextcompany
Version: 2.0.0
Summary: The Context Company AI Agent Observability SDK for Python
Project-URL: Homepage, https://www.thecontextcompany.com
Project-URL: Documentation, https://docs.thecontextcompany.com
Project-URL: Repository, https://github.com/The-Context-Company/observatory
Project-URL: Issues, https://github.com/The-Context-Company/observatory/issues
Project-URL: Changelog, https://github.com/The-Context-Company/observatory/blob/main/packages/python/CHANGELOG.md
Author-email: The Context Company <support@thecontextcompany.com>
License: MIT
Keywords: agents,ai,llm,monitoring,observability,tracing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.9
Requires-Dist: requests>=2.31.0
Provides-Extra: agno
Requires-Dist: openinference-instrumentation-agno>=0.1.0; extra == 'agno'
Requires-Dist: opentelemetry-api>=1.29.0; extra == 'agno'
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.29.0; extra == 'agno'
Requires-Dist: opentelemetry-sdk>=1.29.0; extra == 'agno'
Provides-Extra: claude
Requires-Dist: claude-agent-sdk<0.3,>=0.2.153; extra == 'claude'
Provides-Extra: crewai
Requires-Dist: crewai>=0.70.0; extra == 'crewai'
Requires-Dist: wrapt>=1.14.0; extra == 'crewai'
Provides-Extra: langchain
Requires-Dist: opentelemetry-api>=1.29.0; extra == 'langchain'
Requires-Dist: opentelemetry-exporter-otlp>=1.29.0; extra == 'langchain'
Requires-Dist: opentelemetry-instrumentation-langchain>=0.47.3; extra == 'langchain'
Requires-Dist: opentelemetry-sdk>=1.29.0; extra == 'langchain'
Provides-Extra: litellm
Requires-Dist: litellm; extra == 'litellm'
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.29.0; extra == 'litellm'
Requires-Dist: opentelemetry-sdk>=1.29.0; extra == 'litellm'
Description-Content-Type: text/markdown

# contextcompany

The Context Company AI Agent Observability SDK for Python.

For setup instructions, see our [documentation](https://docs.thecontextcompany.com).

## Claude Agent SDK

The `claude` extra supports Claude Agent SDK `>=0.2.153,<0.3` (Python 3.10+).

```bash
pip install 'contextcompany[claude]'
```

Use `contextcompany.claude.instrument_claude_agent()` for `query()` or wrap an existing `ClaudeSDKClient` with `contextcompany.claude.instrument_claude_client(client)`. Both collect messages automatically. The stateful client records one run per response and converts cumulative SDK costs to per-turn costs.

See [the Python example](../../examples/claude-agent-sdk-python/README.md) for setup, metadata, streaming, and shutdown handling.
