Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aerograph_sdk-0.2.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aerograph_sdk-0.2.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

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

Hashes for aerograph_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 88234333efab881d47488d5adc854bd502198c6f3bfeb23fba859cdabeb592f2
MD5 09b480d78fc5139e6276ae4316a05b74
BLAKE2b-256 f595b3d589042571f52b54716026c8d5aefd0ee2f6126e520ac5b9051ffc1ea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_sdk-0.2.0.tar.gz:

Publisher: release-python.yml on SGcpu/AeroGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for aerograph_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9519ff743ac06b50ffa73b1c3c6e819d5a06257ff4d90cbced1c468750e5290
MD5 aca46bf97d6ce23da7c722dc076cbe5d
BLAKE2b-256 b1a8a87ae04ec6376bdb340ab5bea02073d9031a225a92b52daab09d4f31618e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_sdk-0.2.0-py3-none-any.whl:

Publisher: release-python.yml on SGcpu/AeroGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page