PydanticAI
Native PydanticAI agents with gateway-routed models and governed tools.
Keep native PydanticAI agents and give them models routed through DeepintShield, over Chat Completions or Responses.
What works
- Agents, structured output and streaming with
run_stream - Native tools with governed execution hooks
- Binder builders
modelandagent - The older
shield.pydanticai(...)helper, which uses the/pydanticai/v1prefix
Limits to know: Governed tool hooks need an agent identity and registration.
How to connect
Pass shield.bind("pydanticai").model(..., api="chat_completions") (or api="responses") to a native Agent, or use OpenAIProvider(base_url="https://app.deepintshield.com/v1", api_key=...) with your Virtual Key.
Read the PydanticAI integration docs. Tool governance for agents is part of Agentic Security (Business plan and above).