StreamedChunk

org.llm4s.llmconnect.model.StreamedChunk
case class StreamedChunk(id: String, content: Option[String], toolCall: Option[ToolCall], finishReason: Option[String], thinkingDelta: Option[String])

Represents a streamed chunk of completion data.

Value parameters

content

Optional text content delta.

finishReason

Optional reason for stream completion.

id

Unique identifier for the stream.

thinkingDelta

Optional thinking/reasoning content delta. Present when streaming extended thinking content.

toolCall

Optional tool call information.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hasContent: Boolean

Check if this chunk contains main content.

Check if this chunk contains main content.

Attributes

def hasThinking: Boolean

Check if this chunk contains thinking content.

Check if this chunk contains thinking content.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product