staedi commited on
Commit
21c4162
·
verified ·
1 Parent(s): c8f9ed9

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +9 -9
agent.py CHANGED
@@ -64,12 +64,12 @@ def init_agent():
64
 
65
  return agent
66
 
67
- # Run the agent
68
- async def run_agent(agent,query:str):
69
- response = await agent.run(query)
70
- return response
71
-
72
- # Await function for async
73
- async def await_result(agent,query:str):
74
- response = await agent.run_agent(query)
75
- return response.response.blocks[0].text
 
64
 
65
  return agent
66
 
67
+ # # Run the agent
68
+ # async def run_agent(agent,query:str):
69
+ # response = await agent.run(query)
70
+ # return response
71
+
72
+ # # Await function for async
73
+ # async def await_result(agent,query:str):
74
+ # response = await agent.run_agent(query)
75
+ # return response.response.blocks[0].text