You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DATA]: chat and message object
# We still can send old annotations before enter StackVM stream
[MESSAGE_ANNOTATION]: SOURCE_NODES, KG_RETRIEVAL, REFINE_QUESTION, ...
# From here we start to proxy external+ [MESSAGE_ANNOTATION]: EXTERNAL_STREAM_START, { type: 'StackVM' }+ [external.MESSAGE_ANNOTATION]: { state: StackVM.State }+ [external.TOOL_CALL]: ...+ [external.TOOL_RESULT]: ...+ [external.MESSAGE_ANNOTATION]: { state: StackVM.State }+ [external.TOOL_CALL]: ...+ [external.TOOL_RESULT]: ...+ [external.TEXT] Hello,+ [external.TEXT] world.+ [external.FINISH_MESSAGE]# From here we stop to proxy external stream
[MESSAGE_ANNOTATION]: SOURCE_NODES, KG_RETRIEVAL, REFINE_QUESTION, ...
# Texts are generated from StackVM,no more text should be sent after the external stream- [TEXT] Hello,- [TEXT] world.
External stream must conform to Vercel AI SDK's stream protocol.
Current Stream Protocol
Reuse stream protocol part of Vercel AI SDK
Non-StackVM Engine
StackVM Engine
Goal
Support other states in External Engine protocol:
FINISH_MESSAGE
part.MESSAGE_ANNOTATION
parts.TOOL_CALL
andTOOL_RESULT
can be used for tracking process of a external chat request.The text was updated successfully, but these errors were encountered: