Pydantic AI
Prerequisites
Installation
pip install interactiveai pydantic-aiConfiguration
import os
# InteractiveAI credentials
# Obtain keys from Settings > API Keys in the dashboard
os.environ["INTERACTIVEAI_PUBLIC_KEY"] = "pk-ia-..."
os.environ["INTERACTIVEAI_SECRET_KEY"] = "sk-ia-..."
os.environ["INTERACTIVEAI_HOST"] = "https://app.interactiveai.com"
# Model provider credentials
os.environ["OPENAI_API_KEY"] = "sk-proj-..."Enabling Trace Capture
Running a Pydantic AI Agent
Enriching Traces with Context
Trace Visibility
Last updated
Was this helpful?

