added response to agent
Browse files
app.py
CHANGED
@@ -19,10 +19,8 @@ class BasicAgent:
|
|
19 |
async def agentic_main():
|
20 |
response = await main_agent.run(question)
|
21 |
response = asyncio.run(agentic_main())
|
22 |
-
print(response)
|
23 |
-
|
24 |
-
print(f"Agent returning fixed answer: {fixed_answer}")
|
25 |
-
return fixed_answer
|
26 |
|
27 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
28 |
"""
|
|
|
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
|
|
|
|
|
24 |
|
25 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
26 |
"""
|