mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
pass full notion tool output in stream
This commit is contained in:
parent
04ea40f0c8
commit
79d1f7d603
1 changed files with 5 additions and 0 deletions
|
|
@ -693,6 +693,11 @@ async def _stream_agent_events(
|
|||
yield streaming_service.format_terminal_info(
|
||||
"Knowledge base search completed", "success"
|
||||
)
|
||||
elif tool_name in ("create_notion_page", "update_notion_page", "delete_notion_page"):
|
||||
yield streaming_service.format_tool_output_available(
|
||||
tool_call_id,
|
||||
tool_output if isinstance(tool_output, dict) else {"result": tool_output},
|
||||
)
|
||||
else:
|
||||
yield streaming_service.format_tool_output_available(
|
||||
tool_call_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue