/pydanticai
Setup
- Python
Provider/Model Usage Examples
Your existing Pydantic AI provider switching works unchanged through Bifrost:- Python
Tool Calling
Pydantic AI’s powerful tool system works seamlessly through Bifrost:- Python
Tools with Dependency Injection
UseRunContext to pass dependencies to your tools:
- Python
Structured Output
Define response types using Pydantic models:- Python
Streaming Responses
Stream responses in real-time for better UX:- Python
Adding Custom Headers
Add Bifrost-specific headers for governance and tracking:- Python
Multi-turn Conversations
Maintain conversation history across multiple turns:- Python
Supported Features
The Pydantic AI integration supports all features available in both the Pydantic AI SDK and Bifrost core functionality:
Your existing Pydantic AI agents work seamlessly with Bifrost’s enterprise features. 😄
Next Steps
- Governance Features - Virtual keys and team management
- Semantic Caching - Intelligent response caching
- Configuration - Provider setup and API key management

