Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 337 Bytes

File metadata and controls

22 lines (15 loc) · 337 Bytes

Pydantic AI + PostHog AI Examples

Track Pydantic AI agent calls with PostHog via OpenTelemetry.

Setup

cp .env.example .env
# Fill in your API keys in .env
uv sync

Examples

  • agent_with_otel.py - Agent with tool calling, instrumented via OTEL

Run

source .env
uv run python agent_with_otel.py