Crate rustcastai [−] [src]
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"); }
Modules
api_client | |
client |
Rustcastai Client to perform requests to the Recast.AI API |
resources |
Representation of the API resources (Action, Intent,...) |
responses |
Responses the client method can sent you back (Request for /request and Converse for /converse) |
Structs
ApiClient | |
Client |
Enums
RecastError |
[unstable] Error types for rustcastai. Likely to change, place for improvments |