wit_owo

Crates.iowit_owo
lib.rswit_owo
version0.1.8
sourcesrc
created_at2023-10-15 11:05:04.186898
updated_at2023-11-11 15:54:36.477681
descriptionFinally, an adequate library for wit.ai in Rust.
homepagehttps://github.com/cliftontoaster-reid/wit_owo
repositoryhttps://github.com/cliftontoaster-reid/wit_owo
max_upload_size
id1003664
size138,411
Clifton Toaster Reid (cliftontoaster-reid)

documentation

https://docs.rs/wit_owo/latest/wit_owo/

README

wit_owo

This crate has a goal to simplify the access to the free Natural Language software wit.ai. Therefore, the solution found was creating a united library to manage all the API endpoints that this service provides.

If you are new to the Rust language, we recommend you starting with this example, before trying to play around with the amazing language Rust is.

use wit_owo::prelude::*;
use std::env;

#[tokio::main]
async fn main() {
  dotenv::dotenv().ok();
  let owo = Client::new(&dotenv::var("WIT_AI").unwrap_or(env::var("WIT_AI").expect("For testing a .env must have WIT_AI set, a backup archive is located here https://github.com/cliftontoaster-reid/wit_owo/blob/master/owo/wit_ai.zip")));

  let uwu = owo
    .message("OwO what's this", DynamicEntities::default())
    .await
    .unwrap();
}

Note that this example only works with the following wit.ai backup.


If by any means, someone would like to help us with this project actively, we would love to work with others. Thought we think that corresponding to plan together features and more would be better for everyone. In that spirit for anyone willing to help, please contact the repertory's owner.

Anyway, we hope a great day for anyone reading this.

Toaster with heart

Licences: MIT OR Apache-2.0 according to your preferences.

Commit count: 59

cargo fmt