Update template path.
All checks were successful
Build Base Application / Build (push) Successful in 1m39s
All checks were successful
Build Base Application / Build (push) Successful in 1m39s
This commit is contained in:
parent
410d4b5c58
commit
d607fabe55
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user