pub trait IntoMessages {
// Required method
fn into_messages(self) -> Vec<Message>;
}Expand description
Trait for values that can be turned into a list of chat messages, so the
public API can accept &str, String, Message, or vectors thereof —
mirroring the Python str | Message | list[...] unions.
Required Methods§
fn into_messages(self) -> Vec<Message>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".