From d607fabe553cf7f2c5a9ace861d06083d75f6755 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 31 Dec 2024 20:56:05 +0100 Subject: [PATCH] Update template path. --- src/app/agent.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/agent.py b/src/app/agent.py index c843afa..8d0ace7 100644 --- a/src/app/agent.py +++ b/src/app/agent.py @@ -149,14 +149,14 @@ class Agent: while run.status != "completed": outputs = [] - for tool in run.required_action.submit_tool_outputs.tool_calls: - tool_handler = self.tool_handlers[tool.name] - output = await tool_handler(tool.arguments) - outputs.append({"tool_call_id": tool.id, "output": output}) - if outputs: - run = client.beta.threads.runs.submit_tool_outputs_and_poll( - thread_id=self.thread.id, run_id=run.id, tool_outputs=outputs - ) + #for tool in run.required_action.submit_tool_outputs.tool_calls: + # tool_handler = self.tool_handlers[tool.name] + # output = await tool_handler(tool.arguments) + # outputs.append({"tool_call_id": tool.id, "output": output}) + #if outputs: + # run = client.beta.threads.runs.submit_tool_outputs_and_poll( + # thread_id=self.thread.id, run_id=run.id, tool_outputs=outputs + # ) run = self.client.beta.threads.runs.retrieve( thread_id=self.thread.id, run_id=run.id )