-
Notifications
You must be signed in to change notification settings - Fork 745
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
chore: Rename tool call instances #1492
base: master
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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 @JINO-ROHIT for the contribution! Left some comments below also added one commit here based on the review:8449737 , please review the change and let me know if there's anything we could discuss further~
camel/agents/chat_agent.py
Outdated
func_name = choice.message.tool_calls[0].function.name | ||
tool_name = choice.message.tool_calls[0].function.name |
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.
here I think we need to keep it as func_name
as the value is taken from choice.message.tool_calls[0].function.name
camel/agents/chat_agent.py
Outdated
func_name = choice.message.tool_calls[0].function.name | ||
tool_name = choice.message.tool_calls[0].function.name |
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.
same as above
"from camel.agents.chat_agent import FunctionCallingRecord\n", | ||
"from camel.agents.chat_agent import ToolCallingRecord\n", |
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.
without updating camel's version, we shouldn't directly make change to the output content of cookbooks
ahh thanks making the changes |
Description
This PR closes #1470
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist
I have closely gone through #1424 although I mightve missed a few instances since it was a massive PR and made similar renames required.
Also i dont have an API Key, is there a way I can test my changes, and rerun examples notebooks to remove the saved output pointing to older functioncall.