SemanticBlock

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product