pub trait ChatbotService {
// Required methods
fn try_new_chatbot(config: &Table) -> Result<Chatbot, Error>;
fn model(&self) -> &str;
async fn try_send(
&self,
message: String,
options: Option<Map>,
) -> Result<Vec<String>, Error>;
}
Expand description
Underlying trait of all chatbot services for implementors.
Required Methods§
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.