From 72c3c689666421d0fde25c253be1b245ddcbe35f Mon Sep 17 00:00:00 2001 From: Arsenii Shatokhin Date: Thu, 25 Jan 2024 08:30:40 +0400 Subject: [PATCH] Made execute tool method public --- agency_swarm/threads/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agency_swarm/threads/thread.py b/agency_swarm/threads/thread.py index d421a538..090ba417 100644 --- a/agency_swarm/threads/thread.py +++ b/agency_swarm/threads/thread.py @@ -107,7 +107,7 @@ def get_completion(self, message: str, message_files=None, yield_messages=True): return message - def _execute_tool(self, tool_call): + def execute_tool(self, tool_call): funcs = self.recipient_agent.functions func = next((func for func in funcs if func.__name__ == tool_call.function.name), None)