From 07ec53fccd239b29d7e353334eb1a49c082600bf Mon Sep 17 00:00:00 2001 From: zhaoxi Date: Mon, 27 Apr 2026 23:01:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dget=5Ftool=E7=9A=84?= =?UTF-8?q?=E8=BF=94=E5=9B=9Eactor=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pretor/utils/get_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretor/utils/get_tool.py b/pretor/utils/get_tool.py index 8fe6fd2..b735c41 100644 --- a/pretor/utils/get_tool.py +++ b/pretor/utils/get_tool.py @@ -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():