-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Benmebrouk edited this page Apr 12, 2026
·
2 revisions
Verified AI answers from your documents — or no answer at all.
cargo add wauldo · crates.io · GitHub · Docs · Free API Key
[dependencies]
wauldo = "0.7"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }use wauldo::{HttpClient, HttpConfig};
#[tokio::main]
async fn main() -> wauldo::Result<()> {
let client = HttpClient::new(
HttpConfig::new("https://api.wauldo.com").with_api_key("YOUR_KEY"),
)?;
let result = client.guard(
"Returns accepted within 60 days.",
"Our policy allows returns within 14 days.",
None,
).await?;
println!("{}", result.verdict); // "rejected"
Ok(())
}