Send your AI agent's turns to Emet from the OpenTelemetry GenAI spans it already emits
pip install emet-sdk==0.1.1 Copy PIP instructions
Emet checks the claims an AI agent makes against the evidence behind them: the tool results and data the agent actually received. emet-sdk sends your agent's turns to Emet from the OpenTelemetry GenAI spans your framework already emits. There is no second instrumentation to maintain.
Early release. The API may change before 1.0; every change is in the changelog.
You need an Emet account, a key for a development Application, and the External ID of the Team your users belong to.
uv add emet-sdk # or: pip install emet-sdk import emet_sdk from pydantic_ai import Agent # Once, at startup, after your own tracing setup (such as logfire.configure()) emet_sdk.configure( service_name="support-agent", on_delivery=emet_sdk.write_delivery_file(".emet/last-delivery.json"), ) Agent.instrument_all() @app.post("/chat") async def chat(body: ChatIn, user=Depends(current_user)): # Take these from your server's own auth and storage, never from the request body thread = await threads.get_for_user(user, body.thread_id) with emet_sdk.turn(tenant_ref=user.team_external_id, conversation_id=thread.id, user=user.email): result = await agent.run(body.message) return result.output Set EMET_APPLICATION_KEY in the app's environment. In production that is your host's secret settings; locally, load your .env the way your app already does, for example with uvicorn --env-file .env or python-dotenv. Without the key, the app logs "Emet is off" once and runs as before.
emet-cli can do this setup with your coding agent, and tells you whether a turn reached Emet whole.
DESIGN.md has the details: how a turn is collected, built into Emet's envelope, split and sent.
Emet needs the content of a turn to check it: the user's question, each model call's messages, and each tool call's arguments and result. Before anything leaves the process:
The user you pass to turn(), usually their email, is stored on the trace so Emet can show usage per person.
The delivery result reports each turn as sent, stopped or skipped, with the reason, the trace and conversation ids, span and batch counts, whether the turn matched a Team (unattributed) or arrived after Emet closed it (late), and any tools Emet found missing arguments or results. A turn is captured when it was sent whole, attributed, on time and with no gaps. The result never holds the key, the tenant, the user or any content.
Google ADK is planned. A TypeScript SDK will follow the same design.
See CONTRIBUTING.md for development and releases, and SECURITY.md to report a vulnerability privately. Everyone taking part follows the Code of Conduct.
All 2 files in this release have provenance metadata.
agents emet genai llm observability opentelemetry pydantic-ai
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 Oct 30, 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.




