Pydantic AI 2.61 adds structured citations and closes fail-open paths in input guardrails
Released Oct 23, TextPart.citations now shows which sources back each part of a model's answer in one shape across Anthropic, OpenAI, Bedrock, OpenRouter and xAI, and replays them to the provider that produced them. InputGuardrail now also redacts the user's own prompt and no longer fails open, so if you rely on it to strip secrets or PII, upgrade.