@@ -111,10 +111,9 @@ async def call_tool(
111111 tool_args : dict [str , Any ],
112112 ctx : RunContext [AgentDepsT ],
113113 tool : ToolsetTool [AgentDepsT ],
114- allow_partial : bool = False ,
115114 ) -> Any :
116115 if not workflow .in_workflow ():
117- return await super ().call_tool (name , tool_args , ctx , tool , allow_partial = allow_partial )
116+ return await super ().call_tool (name , tool_args , ctx , tool )
118117
119118 tool_activity_config = self .tool_activity_config .get (name , {})
120119 if tool_activity_config is False :
@@ -124,7 +123,7 @@ async def call_tool(
124123 f'Temporal activity config for tool { name !r} has been explicitly set to `False` (activity disabled), '
125124 'but non-async tools are run in threads which are not supported outside of an activity. Make the tool function async instead.'
126125 )
127- return await super ().call_tool (name , tool_args , ctx , tool , allow_partial = allow_partial )
126+ return await super ().call_tool (name , tool_args , ctx , tool )
128127
129128 tool_activity_config = self .activity_config | tool_activity_config
130129 serialized_run_context = self .run_context_type .serialize_run_context (ctx )
0 commit comments