Skip to content

Conversation

ChenziqiAdam
Copy link
Contributor

Description

Describe your changes in detail (optional if the linked issue already contains a detailed description of the changes).

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #issue-number in the PR description (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed:
  • I have added examples if this is a new feature

If you are unsure about any of these, don't hesitate to ask. We are here to help!

Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🧪 Early access (Sonnet 4.5): enabled

We are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience.

Note:

  • Public repositories are always opted into early access features.
  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.

Comment @coderabbitai help to get the list of available commands and usage tips.

@ChenziqiAdam ChenziqiAdam marked this pull request as draft September 24, 2025 04:10
@ChenziqiAdam ChenziqiAdam marked this pull request as ready for review September 24, 2025 04:10
@ChenziqiAdam
Copy link
Contributor Author

This closes issue #3198

Copy link
Collaborator

@Saedbhati Saedbhati left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @ChenziqiAdam

@Wendong-Fan Wendong-Fan added the Review Required PR need to be reviewed label Sep 29, 2025
@Wendong-Fan Wendong-Fan added this to the Sprint 39 milestone Sep 29, 2025
Copy link
Collaborator

@waleedalzarooni waleedalzarooni left a comment

Choose a reason for hiding this comment

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

Good job!

I left some feedback, let me know what you think!

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 @ChenziqiAdam 's contribution! Left some comments below, also there's some pre-commit issue need to be fixed: https://github.com/camel-ai/camel/actions/runs/18129766609/job/51593349791?pr=3199

cc @waleedalzarooni @Saedbhati

Comment on lines +159 to +170
# Do not regenerate sys_msg when using custom agents
if self.assistant_agent is not None and self.user_agent is not None:
(
init_assistant_sys_msg,
init_user_sys_msg,
sys_msg_meta_dicts,
) = self._get_sys_message_info(
assistant_role_name,
user_role_name,
sys_msg_generator,
extend_sys_msg_meta_dicts=extend_sys_msg_meta_dicts,
)
Copy link
Member

Choose a reason for hiding this comment

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

seems self.assistant_agent and self.user_agent have not yet been assigned, which will lead to an AttributeError?

Copy link
Collaborator

@Saedbhati Saedbhati Oct 3, 2025

Choose a reason for hiding this comment

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

yes, Both self.assistant_agent and self.user_agent have not yet been initialized with ChatAgent objects at this point.

Comment on lines +172 to +173
init_assistant_sys_msg = assistant_agent.system_message
init_user_sys_msg = user_agent.system_message
Copy link
Member

Choose a reason for hiding this comment

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

assistant_agent.system_message and user_agent.system_message could be None here, also lead to AttributeError

@Saedbhati Saedbhati self-requested a review October 3, 2025 13:00
@Wendong-Fan Wendong-Fan added Waiting for Update PR has been reviewed, need to be updated based on review comment and removed Review Required PR need to be reviewed labels Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for Update PR has been reviewed, need to be updated based on review comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants