Trait edm_core::chatbot::ChatbotService
source · 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>;
}Available on crate feature
chatbot only.Expand description
Underlying trait of all chatbot services for implementors.
Required Methods§
Object Safety§
This trait is not object safe.