Struct rustcastai::ApiClient
[−]
[src]
pub struct ApiClient<'a> { /* fields omitted */ }
Methods
impl<'a> ApiClient<'a>
[src]
fn new(
token: &'a str,
user_slug: &'a str,
bot_slug: &'a str
) -> Result<Self, RecastError>
token: &'a str,
user_slug: &'a str,
bot_slug: &'a str
) -> Result<Self, RecastError>
fn get_intent(&self, intent_slug: &str) -> Result<Intent, RecastError>
fn get_intents(&self) -> Result<Vec<Intent>, RecastError>
fn set_language(&mut self, language: &'a str)
fn text_request(&self, text: &str) -> Result<Request, RecastError>
fn file_request(&self, file_name: &str) -> Result<Request, RecastError>
fn text_converse(
&self,
text: &str,
conversation_token: Option<&str>
) -> Result<Converse, RecastError>
&self,
text: &str,
conversation_token: Option<&str>
) -> Result<Converse, RecastError>
fn reset_memory(&self, converation_token: &str) -> Result<Response, RecastError>
fn reset_conversation(
&self,
conversation_token: &str
) -> Result<Response, RecastError>
&self,
conversation_token: &str
) -> Result<Response, RecastError>