feat: 工具的自定义展示执行结果
This commit is contained in:
@@ -99,14 +99,14 @@ async def tool_book_hotel(config: RunnableConfig) -> str:
|
||||
# print("================ response_data ================")
|
||||
# print(response_data)
|
||||
approve_id = response_data.get('graph_state').get('input_approve_id')
|
||||
|
||||
output_message = "预定成功," + response_data.get('message')
|
||||
return [
|
||||
"预定成功," + response_data.get('message'),
|
||||
output_message,
|
||||
{
|
||||
"component": "Link",
|
||||
"props": {
|
||||
"to": f"/pages/approve/approve-detail?id={approve_id}",
|
||||
"children": "点击查看审批进度"
|
||||
"children": f"{output_message},也可以点击这里查看审批进度。"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user