HasSamplingMessageMetadata

Trait HasSamplingMessageMetadata 

Source
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§

Source

fn role(&self) -> &Role

Role of the message (from spec)

Source

fn content(&self) -> &ContentBlock

Content of the message (from spec)

Implementors§