7 releases

0.1.8 Nov 11, 2023
0.1.6 Oct 24, 2023

#309 in Machine learning

Download history 4/week @ 2024-02-26 27/week @ 2024-04-01 155/week @ 2024-04-22

182 downloads per month

MIT/Apache

115KB
1.5K SLoC

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.

Dependencies

~5–23MB
~341K SLoC