Skip to main content

Package

pip install aden-py

GitHub Repository

View source code and contribute

Supported Providers

ProviderPackageStatus
OpenAIopenaiFull support (Chat Completions, streaming, tools)
AnthropicanthropicFull support (Messages API, streaming, tools)
Google Geminigoogle-generativeaiFull support (generateContent, chat)

Framework Compatibility

FrameworkIntegration
PydanticAIFull integration support
LangChainInstruments underlying providers
LangGraphSync and async modes
LlamaIndexWorks with instrumented providers
LiveKit Voice AgentsSpecialized voice agent support

Sync vs Async

Your ContextInstrumentationUninstrumentation
Sync (no event loop)instrument()uninstrument()
Async (inside event loop)await instrument_async()await uninstrument_async()

Metrics Captured

MetricDescription
input_tokensPrompt/input tokens used
output_tokensCompletion/output tokens generated
cached_tokensTokens served from prompt cache
reasoning_tokensReasoning tokens (o1/o3 models)
latency_msRequest duration in milliseconds
modelModel name (e.g., gpt-4o, claude-3-5-sonnet)
providerProvider name (openai, anthropic, gemini)
tool_callsFunction/tool calls made
trace_idOpenTelemetry-compatible trace ID

SDK Documentation