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§
- Contains a client struct for interacting with the wit.ai API
- Types used throughout the crate
- Includes a method and types related to sending dictation requests to the wit api
- Methods and types for interacting with wit entities
- wit_ai_rs crate-related errors
- Types and methods for managing wit intents
- Interacting with the language identification endpoint
- Interacting with the message endpoint
- Interacting with Wit traits
- Interacting with wit utterances