You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Major changes:
- Add validate() and call() methods to BaseOutputProcessor with identity
defaults. Override in ObjectOutputProcessor (existing), UnionOutputProcessor
(new: clean decomposition of union envelope + inner validation/execution),
TextFunctionOutputProcessor (new: function call in call()).
- Eliminate isinstance branching in _build_output_handlers — now uses
polymorphic processor.validate() and processor.call().
- Move OutputContext to public pydantic_ai.output module.
- Fix output_type for functions: now the function input type (what the
model produces), not the return type.
- Fix execute hook parameter types: Any instead of RawOutput, since
validated output varies by processor type.
- Top-level imports in _tool_manager.py, keyword-only args in helpers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments