Python SDK for AeroGraph — emit trace events from Python agent workflows.
Project description
aerograph-sdk
Python SDK for AeroGraph — the open-source flight recorder for AI agent workflows.
Installation
pip install aerograph-sdk
Quickstart
from aerograph_sdk import FlightRecorder
recorder = FlightRecorder(
endpoint="http://localhost:4317",
actor={"id": "my-agent", "name": "My Agent"},
)
# Emit events
prompt_event = recorder.prompt(parent_span_id=None, text="What is AeroGraph?")
recorder.response(parent_span_id=prompt_event.spanId, text="AeroGraph records agent traces.")
Features
- Emit 10 event kinds:
prompt,response,tool_call,tool_result,handoff,error,note,state_snapshot,retriever,checkpoint - Sync and async emission via
httpx - Batch emission with deterministic event ordering
- Cross-language hash compatibility with the TypeScript SDK
- Pydantic v2 contract validation
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aerograph_sdk-0.2.0.tar.gz.
File metadata
- Download URL: aerograph_sdk-0.2.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88234333efab881d47488d5adc854bd502198c6f3bfeb23fba859cdabeb592f2
|
|
| MD5 |
09b480d78fc5139e6276ae4316a05b74
|
|
| BLAKE2b-256 |
f595b3d589042571f52b54716026c8d5aefd0ee2f6126e520ac5b9051ffc1ea1
|
Provenance
The following attestation bundles were made for aerograph_sdk-0.2.0.tar.gz:
Publisher:
release-python.yml on SGcpu/AeroGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aerograph_sdk-0.2.0.tar.gz -
Subject digest:
88234333efab881d47488d5adc854bd502198c6f3bfeb23fba859cdabeb592f2 - Sigstore transparency entry: 1707766649
- Sigstore integration time:
-
Permalink:
SGcpu/AeroGraph@f4f3747cd6026d768e7f6f4d1b43de22f10b0d30 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SGcpu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@f4f3747cd6026d768e7f6f4d1b43de22f10b0d30 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aerograph_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aerograph_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9519ff743ac06b50ffa73b1c3c6e819d5a06257ff4d90cbced1c468750e5290
|
|
| MD5 |
aca46bf97d6ce23da7c722dc076cbe5d
|
|
| BLAKE2b-256 |
b1a8a87ae04ec6376bdb340ab5bea02073d9031a225a92b52daab09d4f31618e
|
Provenance
The following attestation bundles were made for aerograph_sdk-0.2.0-py3-none-any.whl:
Publisher:
release-python.yml on SGcpu/AeroGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aerograph_sdk-0.2.0-py3-none-any.whl -
Subject digest:
b9519ff743ac06b50ffa73b1c3c6e819d5a06257ff4d90cbced1c468750e5290 - Sigstore transparency entry: 1707766690
- Sigstore integration time:
-
Permalink:
SGcpu/AeroGraph@f4f3747cd6026d768e7f6f4d1b43de22f10b0d30 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SGcpu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@f4f3747cd6026d768e7f6f4d1b43de22f10b0d30 -
Trigger Event:
release
-
Statement type: