Skip to main content
The Rust SDK is in alpha. The API is stable, but some interfaces may change based on feedback.
The Answer API searches relevant sources and synthesizes a cited, factual answer in one call.

Wire up Valyu Answer (search-grounded answers) with the Rust SDK (alpha).

Open in Cursor

Basic usage

Common patterns

Use the AnswerRequest builder for anything beyond a plain question, then call client.answer(&request):
For open-ended, multi-step work, reach for DeepResearch instead of Answer.

Reference

query (impl Into<String>, required) - the question to answer.