pub trait AgentMessage: Clone {
type Role: MessageRole;
// Required methods
fn new(role: Self::Role, content: String) -> Self;
fn role(&self) -> &Self::Role;
fn content(&self) -> &str;
}Expand description
A message in the agent conversation.
Required Associated Types§
type Role: MessageRole
Required Methods§
fn new(role: Self::Role, content: String) -> Self
fn role(&self) -> &Self::Role
fn content(&self) -> &str
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.