-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
minor fix for console in AgentLogger #303
Conversation
if this isn't correct, just close the PR
since a lot of tests are failing, I guess |
The failing test was trying to grab console logs from the main console object, from which your proposed PR reroutes the logs away, so it wasn't grabbing its target logs anymore. Now I fixed this test to correctly listen to the agent's logs under |
@@ -409,7 +394,7 @@ def execute_tool_call(self, tool_name: str, arguments: Union[Dict[str, str], str | |||
observation = available_tools[tool_name].__call__(**arguments, sanitize_inputs_outputs=True) | |||
else: | |||
error_msg = f"Arguments passed to tool should be a dict or string: got a {type(arguments)}." | |||
raise AgentExecutionError(error_msg) | |||
raise AgentExecutionError(error_msg, self.logger, self.logger) |
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 guess this is a typo.
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.
if this isn't correct, just close the PR.
@aymeric-roucher