Skip to content

Conversation

@nitpicker55555
Copy link
Collaborator

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!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 11, 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 (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/message_integration

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

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

@nitpicker55555 nitpicker55555 self-assigned this Oct 14, 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 @fengju0213 and @nitpicker55555 , left some comments below

Comment on lines 302 to 308
if isinstance(item, FunctionTool):
enhanced_tools.append(
FunctionTool(
func=enhanced_method,
openai_tool_schema=item.get_openai_tool_schema(),
)
)
Copy link
Member

Choose a reason for hiding this comment

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

seems here is using original tool schema? then why we handle like this, would this be same with enhanced_tools.append(FunctionTool(enhanced_method))?

Copy link
Collaborator

Choose a reason for hiding this comment

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

fixed

Comment on lines 285 to 289
if function_names is None or func.__name__ in function_names:
enhanced_func = self._add_messaging_to_tool(func)
enhanced_tools.append(FunctionTool(enhanced_func))
# If func is a bound toolkit method, route to register_toolkits
if hasattr(func, '__self__') and isinstance(
func.__self__, BaseToolkit
):
Copy link
Member

Choose a reason for hiding this comment

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

seems we didn't consider the case that the toolkit already been enhanced

Copy link
Collaborator

Choose a reason for hiding this comment

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

fixed

@Wendong-Fan Wendong-Fan added the Waiting for Update PR has been reviewed, need to be updated based on review comment label Oct 18, 2025
@Wendong-Fan Wendong-Fan added this to the Sprint 40 milestone Oct 18, 2025
@fengju0213 fengju0213 added Review Required PR need to be reviewed and removed Waiting for Update PR has been reviewed, need to be updated based on review comment labels Oct 21, 2025
Comment on lines 293 to 296
# Enhance the specific method on the toolkit instance
enhanced_toolkit = self.register_toolkits(
toolkit_instance, tool_names=[method_name]
)
Copy link
Member

Choose a reason for hiding this comment

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

this will lead to the whole toolkit be registered

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Wendong-Fan after our discussion,i re-check the code,finding i just pass in tool_names=[method_name] when use register_toolkits,so the whole toolkit will not be registered, only one function
image
so i think the current way is ok

Copy link
Member

Choose a reason for hiding this comment

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

self.register_toolkits would register the whole toolkit, i will fix this

Copy link
Collaborator

Choose a reason for hiding this comment

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

you mean it should be?

@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 25, 2025
@fengju0213 fengju0213 added Review Required PR need to be reviewed and removed Waiting for Update PR has been reviewed, need to be updated based on review comment labels Oct 26, 2025
Comment on lines 293 to 296
# Enhance the specific method on the toolkit instance
enhanced_toolkit = self.register_toolkits(
toolkit_instance, tool_names=[method_name]
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Wendong-Fan after our discussion,i re-check the code,finding i just pass in tool_names=[method_name] when use register_toolkits,so the whole toolkit will not be registered, only one function
image
so i think the current way is ok

@Wendong-Fan Wendong-Fan removed the Review Required PR need to be reviewed label Oct 26, 2025
@Wendong-Fan
Copy link
Member

please review PR: #3331

@Wendong-Fan Wendong-Fan merged commit 47e3889 into master Oct 26, 2025
11 of 12 checks passed
@Wendong-Fan Wendong-Fan deleted the fix/message_integration branch October 26, 2025 22:05
@fengju0213 fengju0213 restored the fix/message_integration branch October 27, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants