Skip to content

Conversation

mshsheikh
Copy link
Contributor

The agents_as_tools.py example was filtering on MessageOutputItem, but tool calls emit ToolResponseItem. Update the loop to check for ToolResponseItem and extract its inner content, so that intermediate translation steps are correctly printed via ItemHelpers.

The agents_as_tools.py example was filtering on MessageOutputItem, but tool calls emit ToolResponseItem.
Update the loop to check for ToolResponseItem and extract its inner content, so that intermediate translation steps are correctly printed via ItemHelpers.
The example was filtering on MessageOutputItem but wasn't correctly identifying translation tool responses.
Updated the loop to use ItemHelpers.text_message_output() on all items and check for tool_name attribute to properly display intermediate translation steps, while removing unused imports that caused linter errors.
@mshsheikh mshsheikh closed this Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant