ask
Send a request and receive normalized text, speech, and display items.
Use the Rust SDK when your client needs strong types, low overhead, or careful runtime control.
The crate name is thalovant.
cargo add thalovantuse thalovant::{Client, Identity, RequestOptions};
#[tokio::main]async fn main() -> thalovant::Result<()> { let identity = Identity::from_file("_identity.json")?; let client = Client::new(identity)?;
let reply = client .ask("Tell me a short clean joke.", RequestOptions::default()) .await?;
println!("{}", reply.text.unwrap_or_default()); Ok(())}ask
Send a request and receive normalized text, speech, and display items.
build_client_context
Build context for user, platform, source, locale, and trace metadata.
send_action
Send a structured action from a device, UI, or service command.
send_code
Send a scanned value, serial number, QR value, or typed code.