diff --git a/app/controller/add_langgraph_chat_route.py b/app/controller/add_langgraph_chat_route.py index ce465af..688daf7 100644 --- a/app/controller/add_langgraph_chat_route.py +++ b/app/controller/add_langgraph_chat_route.py @@ -28,12 +28,7 @@ from app.utils.postgres_checkpointer import PostgresCheckpointerManager, AsyncPo description="一个用于获取当前时间的工具,没有参数" ) def tool_get_datetime(): - return { - "result": f"当前时间为:{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}", - "render": { - "type": "DataTable" - } - } + return f"当前时间为:{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}" @tool(