StreamFrame

sealed interface StreamFrame(source)

Represents a frame of a streaming response from a LLM.

Inheritors

Types

Link copied to clipboard
data class Append(val text: String) : StreamFrame

Represents a frame of a streaming response from a LLM that appends some text.

Link copied to clipboard
data class End(val finishReason: String? = null, val metaInfo: ResponseMetaInfo = ResponseMetaInfo.Empty) : StreamFrame

Represents a frame of a streaming response from a LLM that signals the end of the stream.

Link copied to clipboard
data class ToolCall(val id: String?, val name: String, val content: String) : StreamFrame

Represents a frame of a streaming response from a LLM that contains a tool call.