@mirego/forra-api / Streaming Utilities
Streaming Utilities
Utilities for handling real-time streaming chat completions. This module provides functions and types for managing Server-Sent Events (SSE), processing streaming chunks, and converting stream data to conversation messages.
Functions
- accumulateStreamChunks
- convertConversationMessageToStreamChunk
- convertStreamChunkToConversationMessage
- isSameChunk
- mergeClientToolCallsIntoChunks
- streamChatRequest
- streamChunkIsRelatedToToolCallId
Type Aliases
- ClarificationQuestion
- ClarificationQuestionType
- LLMProvider
- LocalizedMessage
- StreamChatCompletionOnMessageEvent
- StreamChatRequestOptions
- StreamChunk
- StreamChunkAccumulatorState
- StreamChunkReasoning
- StreamError
- StreamToolStatus
- ToolCallEntry