|
@@ -91,6 +91,7 @@ def execute_agent_with_api(user_input: str):
|
|
|
|
|
|
# memory = InMemorySaver()
|
|
|
# graph = graph_builder.compile(checkpointer=memory)
|
|
|
+ graph = graph_builder.compile()
|
|
|
except Exception as e:
|
|
|
logger.error(f"初始化Agent失败: {str(e)}")
|
|
|
return f"初始化Agent失败: {str(e)}"
|