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

chore: Rename tool call instances #1492

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

chore: Rename tool call instances #1492

wants to merge 12 commits into from

Conversation

JINO-ROHIT
Copy link
Collaborator

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:

  • Bug fix (non-breaking change which fixes an issue)
  • Example (update in the folder of example)

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.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@JINO-ROHIT JINO-ROHIT requested a review from WHALEEYE January 23, 2025 10:17
@Wendong-Fan Wendong-Fan changed the title rename tool call instances chore: Rename tool call instances Jan 23, 2025
@Wendong-Fan Wendong-Fan added the enhancement New feature or request label Jan 23, 2025
@Wendong-Fan Wendong-Fan added this to the Sprint 21 milestone Jan 23, 2025
Copy link
Member

@Wendong-Fan Wendong-Fan left a 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~

func_name = choice.message.tool_calls[0].function.name
tool_name = choice.message.tool_calls[0].function.name
Copy link
Member

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

func_name = choice.message.tool_calls[0].function.name
tool_name = choice.message.tool_calls[0].function.name
Copy link
Member

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",
Copy link
Member

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

@JINO-ROHIT
Copy link
Collaborator Author

ahh thanks making the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[Feature Request] Update naming for tool call related variable
2 participants