feat: 没有好的办法可以在工具调用中挂靠东西
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user