From f3577e42b674d2e8e4004d3e97319bd53592380c Mon Sep 17 00:00:00 2001 From: OhYee Date: Tue, 31 Mar 2026 17:05:35 +0800 Subject: [PATCH] fix(agentscope): use correct to_agentscope() instead of to_crewai() in toolset() The toolset() function in agentscope integration was incorrectly calling .to_crewai() instead of .to_agentscope(), returning CrewAI-formatted tools instead of AgentScope-formatted ones. Change-Id: I41758ca6e22173cfc4cc47fa95713c8fb5d992a7 Co-developed-by: Claude Co-Authored-By: Claude Opus 4.6 (1M context) --- agentrun/integration/agentscope/builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentrun/integration/agentscope/builtin.py b/agentrun/integration/agentscope/builtin.py index 1a94e7f..ddbf9a5 100644 --- a/agentrun/integration/agentscope/builtin.py +++ b/agentrun/integration/agentscope/builtin.py @@ -43,7 +43,7 @@ def toolset( """将内置工具集封装为 LangChain ``StructuredTool`` 列表。 / AgentScope Built-in Integration Functions""" ts = _toolset(input=name, config=config) - return ts.to_crewai( + return ts.to_agentscope( prefix=prefix, modify_tool_name=modify_tool_name, filter_tools_by_name=filter_tools_by_name,