Spaces:
Sleeping
Sleeping
Commit ·
604ac28
1
Parent(s): 0e76951
feat : update consolelog
Browse files- services/agents.py +5 -2
services/agents.py
CHANGED
|
@@ -318,6 +318,9 @@ def run_agent(user_input: str):
|
|
| 318 |
result = agent.invoke({
|
| 319 |
"messages": [{"role": "user", "content": user_input }]
|
| 320 |
})
|
| 321 |
-
|
| 322 |
print(f"result:{result}")
|
| 323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
result = agent.invoke({
|
| 319 |
"messages": [{"role": "user", "content": user_input }]
|
| 320 |
})
|
|
|
|
| 321 |
print(f"result:{result}")
|
| 322 |
+
|
| 323 |
+
output_format = format_agent_result( result )
|
| 324 |
+
print(f"output_format:{output_format}")
|
| 325 |
+
|
| 326 |
+
return { "output": output_format }
|