mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 01:32:40 +02:00
refactor(chat): stream agent events via stream_output and remove parity v2 flag
This commit is contained in:
parent
7e07092f67
commit
78f4747382
17 changed files with 76 additions and 1676 deletions
|
|
@ -608,15 +608,14 @@ class VercelStreamingService:
|
|||
Args:
|
||||
tool_call_id: The unique tool call identifier. May be EITHER the
|
||||
synthetic ``call_<run_id>`` id derived from LangGraph
|
||||
``run_id`` (legacy / ``SURFSENSE_ENABLE_STREAM_PARITY_V2``
|
||||
OFF, or the unmatched-fallback path under parity_v2) OR
|
||||
the authoritative LangChain ``tool_call.id`` (parity_v2
|
||||
path: when the provider streams ``tool_call_chunks`` we
|
||||
register the ``index`` and reuse the lc-id as the card
|
||||
id so live ``tool-input-delta`` events can be routed
|
||||
without a downstream join). Either way, the same id is
|
||||
preserved across ``tool-input-start`` / ``-delta`` /
|
||||
``-available`` / ``tool-output-available`` for one call.
|
||||
``run_id`` (unmatched chunk fallback when no ``index`` was
|
||||
registered) OR the authoritative LangChain ``tool_call.id``
|
||||
(when the provider streams ``tool_call_chunks`` we register
|
||||
the ``index`` and reuse the lc-id as the card id so live
|
||||
``tool-input-delta`` events route without a downstream join).
|
||||
Either way, the same id is preserved across
|
||||
``tool-input-start`` / ``-delta`` / ``-available`` /
|
||||
``tool-output-available`` for one call.
|
||||
tool_name: The name of the tool being called.
|
||||
langchain_tool_call_id: Optional authoritative LangChain
|
||||
``tool_call.id``. When set, surfaces as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue