SamplingMessage extension type

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

on
Implemented types
Implementers

Constructors

SamplingMessage({required Role role, required List<SamplingMessageContentBlock> content, Meta? meta})
factory
SamplingMessage.fromMap(Map<String, Object?> _value)

Properties

content → List<SamplingMessageContentBlock>
The content of the message.
no setter
meta → Meta?
The _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.
no setterinherited
role → Role
The role of the message.
no setter