Skip to content

Conversation

franzwilding
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Docs? no
Issues Fix #680
License MIT

This PR dispatches three new events around tool calling.

@carsonbot carsonbot added Status: Needs Review Agent Issues & PRs about the AI Agent component labels Oct 1, 2025
@OskarStark OskarStark changed the title [Agent] Dispatch more tool call events #680 [Agent] Dispatch more tool call events Oct 1, 2025
/**
* Dispatched after successfully invoking a tool.
*/
final readonly class ToolCallSuccess
Copy link
Contributor

Choose a reason for hiding this comment

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

either ToolCallSuccessful or SuccessfulToolCall? Same for the failed one.

WDYT @chr-hertel ?

@OskarStark
Copy link
Contributor

Thanks for tackling this topic, can you please add some docs?

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

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

I think in general this totally makes sense, and I'd only see some fine-tuning here.

  1. I think it's a bit odd to me having basically two events with the same payload dispatched line after line, referring to ToolCallArgumentsResolved and ExecuteToolCall - do i miss something here?
  2. I would propose to move to an event-style of naming, and we're half way there

proposed changes:

  • drop ExecuteToolCall
  • rename ToolCallSuccess to ToolCallSucceeded

@franzwilding
Copy link
Contributor Author

@chr-hertel I renamed the success event and dropped ExecuteToolCall.

@OskarStark OskarStark force-pushed the feature/680-tool-events branch from a8ec69a to e17fbd5 Compare October 3, 2025 16:29
@OskarStark OskarStark force-pushed the feature/680-tool-events branch from e17fbd5 to 36079d2 Compare October 3, 2025 16:32
@OskarStark
Copy link
Contributor

OskarStark commented Oct 3, 2025

Thank you @franzwilding, I rebased your PR to get rid of the merge commit 👍

@OskarStark OskarStark merged commit fa02de3 into symfony:main Oct 3, 2025
9 of 15 checks passed
@chr-hertel
Copy link
Member

Nice one @franzwilding - thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Issues & PRs about the AI Agent component Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Agent] Streaming ResultInterface parts
4 participants