[Bug Fix] Camel example with wrong and missing agent arguments#766
[Bug Fix] Camel example with wrong and missing agent arguments#766garrett4wade merged 1 commit intomainfrom
Conversation
Summary of ChangesHello @HwVanICI, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses several bugs within the Camel example's training code, specifically focusing on how agent configuration parameters are managed. The changes ensure that critical arguments like token limits and step timeouts are correctly passed to the underlying agent and model components, aligning them with the expected API and system-wide rollout configurations. This improves the robustness and consistency of the Camel example's agent behavior. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses issues with incorrect and missing arguments in the Camel example. The changes correctly pass step_timeout to the ChatAgent and add the request_timeout configuration. However, there is an issue with how the token limit is specified. The max_tokens parameter is used, but max_total_tokens should be used instead to correctly limit the total length of the generated trajectory. I have provided a specific comment with a suggested fix.
Description
This PR fixes bugs of the Camel example training code. In the run_agent() function of CamelMathAgent class is updated to pass the max_tokens and step_timeout parameter properly as follows.
Related Issue
Fixes #(issue)
Type of Change
work as expected)
Checklist
jb build docs/gemini review)Need help? Check the Contributing Guide or ask in
GitHub Discussions!