From 74e2bb386b5e4f12ca09c3be1e64f4c6c4ee190d Mon Sep 17 00:00:00 2001 From: steveant Date: Fri, 19 Dec 2025 21:55:03 -0500 Subject: [PATCH] fix(agents): update deprecated pydantic-ai parameter Rename `result_type` to `output_type` in DocumentAgent to fix compatibility with pydantic-ai 1.0.x. The Agent class renamed this parameter in the 1.0 release. --- python/src/agents/document_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/agents/document_agent.py b/python/src/agents/document_agent.py index 9e9c5fbfc7..597bb69c77 100644 --- a/python/src/agents/document_agent.py +++ b/python/src/agents/document_agent.py @@ -76,7 +76,7 @@ def _create_agent(self, **kwargs) -> Agent: agent = Agent( model=self.model, deps_type=DocumentDependencies, - result_type=DocumentOperation, + output_type=DocumentOperation, system_prompt="""You are a Document Management Assistant that helps users create, update, and modify project documents through conversation. **Your Capabilities:**