4 releases
Uses old Rust 2015
0.2.2 | Feb 8, 2017 |
---|---|
0.2.1 | Feb 7, 2017 |
0.2.0 | Jan 21, 2017 |
0.1.0 | Nov 26, 2016 |
#9 in #recast
18KB
386 lines
Rustcastai
Unofficial Recast.AI SDK in Rust
Synopsis
This module is a wrapper around the Recast.AI API, and allows you to:
- analyze your text / audio file
- build a bot
Getting started
If you're using Cargo, just add Rustcastai to your Cargo.toml:
[dependencies.rustcastai]
version = "0.2.0"
Documentatieon
-- Coming soon --
lib.rs
:
Wrapper around the Recast.AI API
Overview
This crate is a wrapper around the open API of Recast.AI. It allows you to build bots and analyze text and audio files
Usage
extern crate rustcastai;
let client = rustcastai::Client::new("MY_REQUEST_ACCESS_TOKEN").unwrap();
let res = client.text_request("Hello, world").unwrap();
if let Some(intent) = res.intent() {
println!("Intent detected: {}", intent);
} else {
println!("No intent detected");
}
Dependencies
~8–15MB
~238K SLoC