fix: 修复get_tool的返回actor错误
This commit is contained in:
parent
d322826c87
commit
07ec53fccd
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue