Package-level declarations
Types
Represents a frame of a streaming response from a LLM.
Represents a wrapper around a FlowCollector that provides methods for emitting StreamFrame objects.
Represents an error that can occur during buildStreamFrameFlow operations.
Functions
Builds a Flow of StreamFrame objects.
Collects the textual content of a Flow of StreamFrame objects and returns it as a single string.
Emits a StreamFrame.Append with the given text.
Emits a StreamFrame.End with the given finishReason.
Emits a StreamFrame.ToolCall with the given id, name and content.
Returns a transformed flow of StreamFrame.Append objects that contains only the textual content.
Builds a Flow of StreamFrame objects.
Create a Flow of StreamFrame.Append objects from a list of String content.
Extracts the assistant response from frames, if any.
Converts frames into Message.Response objects.
Converts a Message.Response to a StreamFrame.
Extracts only tool calls from frames.