pub trait HasSamplingMessageMetadata {
// Required methods
fn role(&self) -> &Role;
fn content(&self) -> &ContentBlock;
}
Expand description
Trait for sampling message metadata (role, content from MCP spec)
Required Methods§
Sourcefn content(&self) -> &ContentBlock
fn content(&self) -> &ContentBlock
Content of the message (from spec)