Run Team along with streaming and structured output

Hi,

I’m trying to run Team along with streaming and structured output. From the documentation I understand that is possible Structured Output - Agno, yet I get an error (attaching the end of the error I get otherwise message is too long). I’m using Agno 1.7.1. Any idea about the error and how can I resolve please? Thanks.

class TeamOutput(BaseModel):
    response: str = Field(..., description="Response from API")


agent_team = Team(
        name=TEAM_NAME,
        mode="route",
        model=get_model(),
        members=[
            agent1,
            agent2,
            agent3,
        ],
        description=AGENT_TEAM_DESCRIPTION,
        instructions=AGENT_TEAM_INSTRUCTIONS,
        show_tool_calls=True,
        show_members_responses=True,
        markdown=True,
        monitoring=True,
        debug_mode=True,
        add_datetime_to_instructions=True,
        reasoning=True,
        reasoning_model=get_model(),
        stream=True,
        store_events=True,
        response_model=TeamOutput,
    )



        response_stream = agent_team.run(
        message=message,
        stream=True,
        show_full_reasoning=True,
        stream_intermediate_steps=True,
        stream_member_events=True,
    )

    for event in response_stream:
        print(event.event)


TypeError: Claude.format_function_call_results() missing 1 required positional argument: 'tool_ids'

Process finished with exit code 1

Hey @ayalaall, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!

1 Like

Hey @ayalaall

Thank you so much for reporting this. The error was related to how we parse function call results for Claude. We have identified a fix and it’s on its way to be released.

1 Like

Thanks @manu for the update and for working on the fix. Do you have an estimate when the fix will be released please?

The fix is merged already and will be released in the coming days with version 1.7.2!

1 Like