drAbreu commited on
Commit
8bd0dd5
·
1 Parent(s): bfc38be

added response to agent

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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