-
Notifications
You must be signed in to change notification settings - Fork 514
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
Improve static tools initialization safety #324
Improve static tools initialization safety #324
Conversation
@aymeric-roucher Is that ok? |
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.
Thanks.
With your contribution, the originally passed static_tools
dict will not be changed by evaluate_python_code
function. Specifically, in this line:
static_tools["final_answer"] = final_answer |
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.
It breaks test: test_function_persistence_across_steps
How do I obtain this test code? |
I have fixed the issue. Since |
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.
Thank you.
Create a copy of static_tools to avoid modifying the original object.