-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Open
Labels
bugSomething isn't workingSomething isn't workingtriageIssue needs to be triaged/prioritizedIssue needs to be triaged/prioritized
Description
Bug Description
After creating a FunctionAgent
with list of tools from mcp utils, i get an AgentOutput
instance back with tool_calls
a list of ToolCallResults
instead fo ToolSelection
s.
It doesn't crash anything, just reporting this
Version
0.14.4
Steps to Reproduce
It's a very basic innocent looking FunctionAgent(llm=..., tools=[..])
and then a run.
Can't share the full code, but if needed it can inject mode debug statements during run.
Relevant Logs/Tracbacks
2025-10-13 14:35:52,408 - MainProcess - DEBUG - result=AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='THE_LLM_OUTPUT')]), structured_response=None, current_agent_name='Agent', raw={'id': 'chatcmpl-123', 'choices': [{'delta': {'content': None, 'function_call': None, 'refusal': None, 'role': None, 'tool_calls': None}, 'finish_reason': 'stop', 'index': 0, 'logprobs': None}], 'created': 1760358952, 'model': 'gpt-5-mini', 'object': 'chat.completion.chunk', 'service_tier': None, 'system_fingerprint': None, 'usage': None}, tool_calls=[ToolCallResult(tool_name='my_tool', tool_kwargs={'query': 'my_query', 'my_other_option': 'other'}, tool_id='call_456', tool_output=ToolOutput(blocks=[TextBlock(block_type='text', text='meta=None content=[TextContent(type=\'text\', text="TOOL_OUTPUT", annotations=None, meta=None)] structuredContent=None isError=False')], tool_name='my_tool', raw_input={'args': (), 'kwargs': {'query': 'my_query', 'my_other_option': 'other'}}, raw_output=CallToolResult(meta=None, content=[TextContent(type='text', text="TOOL_OUTPUT", annotations=None, meta=None)], structuredContent=None, isError=False), is_error=False), return_direct=False)], retry_messages=[])
I tried looking in the code what coulde be setting this, but nothing stands out imho and i am a bit lost in the code.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageIssue needs to be triaged/prioritizedIssue needs to be triaged/prioritized