Expand description
§wit_ai_rs
A crate for interacting with the wit.ai API
The following code shows an example how to get started with this crate by instantiating a WitClient:
let wit_client = WitClient::new("TOKEN".to_string(), "20240215".to_string());
Specific endpoints can be called using various methods of the WitClient struct, for example the message endpoint can be called as follows:
let response: MessageResponse = wit_client
.message("Some query sentence".to_string(), MessageOptions::default())
.await
.unwrap();
Examples for most methods can be found in their respective modules. For each of these examples,
assume that wit_client
is a valid WitClient.
Re-exports§
pub use common_types::*;
Modules§
- client
- Contains a client struct for interacting with the wit.ai API
- common_
types - Types used throughout the crate
- dictation
- Includes a method and types related to sending dictation requests to the wit api
- entities
- Methods and types for interacting with wit entities
- errors
- wit_ai_rs crate-related errors
- intents
- Types and methods for managing wit intents
- language
- Interacting with the language identification endpoint
- message
- Interacting with the message endpoint
- speech
- Includes functionality related to sending speech requests to the wit api
- traits
- Interacting with Wit traits
- utterances
- Interacting with wit utterances