Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include the tool name for on_tool_end callback #2000

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

blob42
Copy link
Contributor

@blob42 blob42 commented Mar 26, 2023

This is useful if you rely on the on_tool_end callback to detect which tool has finished in a multi agents scenario.

For example, I'm working on a project where I consume the on_tool_end event where the event could be emitted by many agents or tools. Right now the only way to know which tool has finished would be set a marker on the on_tool_start and catch it on on_tool_end.

I didn't want to break the signature of the function, but what would have been cleaner would be to pass the same details as in on_tool_start

@blob42 blob42 changed the title includ tool name for on_tool_end callback include the tool name for on_tool_end callback Mar 26, 2023
@blob42 blob42 marked this pull request as ready for review March 26, 2023 02:24
Copy link
Collaborator

@agola11 agola11 left a comment

Choose a reason for hiding this comment

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

Thanks

@agola11 agola11 merged commit 33ebb05 into langchain-ai:master Mar 28, 2023
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.

2 participants