Skip to content

TextChunk

A text content chunk from the LLM response stream.

---
title: TextChunk
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class StreamChunk {
      <<abstract>>
        +string kind
    }
    StreamChunk <|-- TextChunk
    class TextChunk {
        +string kind
        +string value
    }
value: Hello
NameTypeDescription
kindstringThe kind identifier for text chunks
valuestringThe text content of the chunk