Skip to main content

LLM Providers

ProviderStatusInstrumentation MethodFeatures
OpenAI✅ Supportedinstrument()Streaming, Tool calls, Vision, JSON mode
Anthropic✅ Supportedinstrument()Streaming, Tool calls, Prompt caching
Google Gemini✅ Supportedinstrument()Streaming, Tool calls, Chat sessions

Agent Frameworks

FrameworkStatusInstrumentation MethodNotes
PydanticAI✅ Supportedinstrument()Agents, structured output, tools, dependencies
PydanticAI uses OpenAI/Anthropic SDKs internally, so instrument() automatically captures all LLM calls.

Feature Support

FeatureOpenAIAnthropicGemini
Basic completions
Streaming
Tool/Function calls
Token tracking
Cached token tracking
Rate limit tracking
Latency metrics
Error tracking
Async support
Cost control

Instrumentation Methods

instrument() - Sync Instrumentation

For synchronous applications or when not using a control server.
from aden import instrument, MeterOptions, create_console_emitter

instrument(MeterOptions(
    emit_metric=create_console_emitter(pretty=True),
))

instrument_async() - Async Instrumentation

For async applications, especially when connecting to a control server.
from aden import instrument_async, MeterOptions

await instrument_async(MeterOptions(
    api_key=os.environ["ADEN_API_KEY"],
))

PydanticAI Features

FeatureStatusNotes
Basic agentsSystem prompts, model selection
Structured outputPydantic models as output types
Tool calling@agent.tool decorator
Multi-providerOpenAI, Anthropic, Gemini
Streamingrun_stream() with async iteration
DependenciesDependency injection with deps_type
Dynamic prompts@agent.system_prompt decorator
Multi-agent workflowsChain multiple agents

Examples

ExampleDescriptionFile
OpenAI BasicCompletions, streaming, tool callsopenai_basic.py
Anthropic BasicMessages, streaming, prompt cachinganthropic_basic.py
Gemini BasicContent generation, chat sessionsgemini_basic.py
PydanticAIAgents, structured output, tools, multi-agentpydantic_ai_example.py
Cost ControlLocal policy engine without servercost_control_local.py
Control ActionsAll 5 control actions democontrol_actions.py

View Examples on GitHub

Browse complete example code

Coming Soon

FrameworkStatusETA
LangChain🔜 Planned-
LlamaIndex🔜 Planned-
CrewAI🔜 Planned-
AutoGen🔜 Planned-
Want support for another framework? Open an issue on GitHub.