diff --git a/agency_swarm/agents/agent.py b/agency_swarm/agents/agent.py index 86d43d49..290b0688 100644 --- a/agency_swarm/agents/agent.py +++ b/agency_swarm/agents/agent.py @@ -370,7 +370,8 @@ def get_openapi_schema(self, url): { "apiKey": [] } - ] + ], + "x-openai-isConsequential": False, } } diff --git a/agency_swarm/threads/thread.py b/agency_swarm/threads/thread.py index 090ba417..924896c1 100644 --- a/agency_swarm/threads/thread.py +++ b/agency_swarm/threads/thread.py @@ -70,7 +70,7 @@ def get_completion(self, message: str, message_files=None, yield_messages=True): yield MessageOutput("function", self.recipient_agent.name, self.agent.name, str(tool_call.function)) - output = self._execute_tool(tool_call) + output = self.execute_tool(tool_call) if inspect.isgenerator(output): try: while True: