CompletionChunk

org.llm4s.llmconnect.model.CompletionChunk
final case class CompletionChunk(id: String, content: Option[String], toolCall: Option[ToolCall], finishReason: Option[String], delta: ChunkDelta)

Represents a streaming chunk of completion data

Attributes

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

Members list

Value members

Concrete methods

def asText: String

Extract text content from chunk

Extract text content from chunk

Attributes

def isComplete: Boolean

Check if this chunk represents the end of the stream

Check if this chunk represents the end of the stream

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product