SamplingMessage

data class SamplingMessage(val role: Role, val content: MediaContent)(source)

Describes a message issued to or received from an LLM API.

Used in sampling requests to provide conversation context and history to the LLM.

Constructors

Link copied to clipboard
constructor(role: Role, content: MediaContent)

Properties

Link copied to clipboard

The content of the message. Can be text, image, or audio content.

Link copied to clipboard
val role: Role

The role of the message sender (user, assistant, or system).