Records an AI agent's model and tool calls with OpenTelemetry and sends them to the customer's Redberry install.
pip install redberry-sdk Copy PIP instructions
The SDK sends only to the Redberry install in your own cloud account (or to an endpoint you set). It does not send anything to Redberry directly.
pip install redberry-sdk # core pip install "redberry-sdk[providers]" # plus instrumentation for model providers (OpenAI, Anthropic, ...) pip install "redberry-sdk[all]" # providers, agent frameworks and vector databases Python 3.11 or later.
import redberry_sdk redberry_sdk.init(agent="refund-agent") # your agent's name, as you will approve it in the Redberry portal Call init() once, before the agent makes its first model call. Model calls made through supported libraries are then recorded automatically.
Serverless functions (AWS Lambda, Azure Functions, Cloud Run functions) can be frozen as soon as a request returns. Flush before returning:
@redberry_sdk.flush_after def handler(event, context): ... or call redberry_sdk.flush() yourself.
Temperature. Redberry prices an agent from its sampled behaviour, so the agent's model calls must run at temperature 1.0.
On these platforms the SDK finds your install automatically and authenticates with the platform's own identity; no keys are needed:
Elsewhere, set the ingest address explicitly.
Settings can also be placed in a .env file next to the agent. Settings from earlier versions of the SDK, under a different prefix, are still accepted.
Records the SDK could not deliver are counted by redberry_sdk.dropped_spans().
All 2 files in this release have provenance metadata.
providers frameworks vectordb openai-agents hasher all dev
opentelemetry ai agents llm observability redberry
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




