Trait BaseMessage

Source
pub trait BaseMessage {
    // Required methods
    fn content(&self) -> &str;
    fn message_type(&self) -> &MessageType;
    fn role(&self) -> &str;
    fn name(&self) -> Option<&str>;
    fn is_example(&self) -> bool;
    fn additional_kwargs(&self) -> &HashMap<String, String>;
    fn response_metadata(&self) -> &HashMap<String, String>;
    fn id(&self) -> Option<&str>;
}

Required Methods§

Trait Implementations§

Source§

impl Debug for dyn BaseMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§