Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
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 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
# Await function for async
|
| 73 |
-
async def await_result(agent,query:str):
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 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
|