added response to agent
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ class BasicAgent:
|
|
18 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
19 |
async def agentic_main():
|
20 |
response = await main_agent.run(question)
|
|
|
21 |
response = asyncio.run(agentic_main())
|
22 |
print(f"Agent returning answer: {response.response.blocks[-1].text}")
|
23 |
return response.response.blocks[-1].text
|
|
|
18 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
19 |
async def agentic_main():
|
20 |
response = await main_agent.run(question)
|
21 |
+
return response
|
22 |
response = asyncio.run(agentic_main())
|
23 |
print(f"Agent returning answer: {response.response.blocks[-1].text}")
|
24 |
return response.response.blocks[-1].text
|