org.llm4s.context.SemanticBlock
See theSemanticBlock companion object
case class SemanticBlock(id: SemanticBlockId, messages: Seq[Message], blockType: SemanticBlockType, expectingAssistantResponse: Boolean)
Represents a semantic block of related messages in a conversation.
A semantic block groups logically related messages together, typically a user-assistant exchange with any associated tool calls.
Value parameters
- blockType
-
The classification of this block (pair, standalone, etc.)
- expectingAssistantResponse
-
True if the block is incomplete (awaiting response)
- id
-
Unique identifier for this block
- messages
-
The messages contained in this block
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article