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

minor fix for console in AgentLogger #303

Merged
merged 4 commits into from
Jan 22, 2025
Merged

minor fix for console in AgentLogger #303

merged 4 commits into from
Jan 22, 2025

Conversation

nbroad1881
Copy link
Contributor

if this isn't correct, just close the PR.

@aymeric-roucher

if this isn't correct, just close the PR
@nbroad1881
Copy link
Contributor Author

since a lot of tests are failing, I guess self.console is wrong 😅

@aymeric-roucher
Copy link
Collaborator

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 agent.logger.console!

@aymeric-roucher aymeric-roucher merged commit ec45d67 into main Jan 22, 2025
4 checks passed
@@ -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)
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

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.

3 participants