Skip to content

Conversation

mokronos
Copy link

@mokronos mokronos commented Oct 6, 2025

Add the option to print tool calls and their results in the .to_cli() method. Would really help debugging.

@Kludex
Copy link
Member

Kludex commented Oct 7, 2025

I don't think we need to give an option, but the experience should be good.

@Kludex Kludex requested a review from DouweM October 7, 2025 09:41
config_dir: Path | None = None,
deps: AgentDepsT = None,
message_history: list[ModelMessage] | None = None,
show_tool_calls: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with @Kludex -- we can always show tool calls, and remove the flag.

)
elif isinstance(event, FunctionToolResultEvent):
console.print(
Markdown(f'[Tool] {event.result.tool_name!r} returned => {event.result.content}')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show a screenshot of what this looks like please?

I wonder if we can get some prettier styling from Rich as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants