fix: 修复get_tool的返回actor错误

This commit is contained in:
朝夕 2026-04-27 23:01:30 +08:00
parent d322826c87
commit 07ec53fccd
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ async def get_tool(agent_name: str) -> List[Callable]:
cached = _agent_tool_result_cache.get(agent_name)
if cached is not None:
return cached
global_state_machine = ray_actor_hook("global_state_machine")
global_state_machine = ray_actor_hook("global_state_machine").global_state_machine
_tool_list = await global_state_machine.get_tool_list.remote(agent_name)
tool_list = []
for tool_name in _tool_list.keys():