-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
rfc: callback changes #1165
rfc: callback changes #1165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, yeah agentaction did not need to be part of the tool callbacks
action=action.tool, | ||
tool_input=action.tool_input, | ||
# TODO: this is duplicate info as above, not needed. | ||
action=str(serialized), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can rm this from the tracing backend and make the changes here next time we release a new tracing version
@@ -68,7 +68,7 @@ def on_chain_error( | |||
|
|||
@abstractmethod | |||
def on_tool_start( | |||
self, serialized: Dict[str, Any], action: AgentAction, **kwargs: Any | |||
self, serialized: Dict[str, Any], input_str: str, **kwargs: Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uber nit: tool_input
seems like a better name?
conceptually, no reason a tool should know what an "agent action" is unless any objections, can change in all callback handlers
conceptually, no reason a tool should know what an "agent action" is
unless any objections, can change in all callback handlers