The Rust SDK is in alpha. The API is stable, but some interfaces may change based on feedback.
For the conceptual overview, search configuration, and best practices, see the DeepResearch Guide. This page is the Rust SDK method reference.
Wire up Valyu DeepResearch (autonomous research agent) with the Rust SDK (alpha).
Basic usage
Research modes
Use the enum variants
DeepResearchMode::Fast, ::Standard, ::Heavy, ::Max. The legacy ::Lite variant maps to standard. Max requires at least $15 in available credits.Builder pattern
UseDeepResearchCreateRequest for full control, then call client.deepresearch_create(&request):
webhook_secret is returned only once on create - store it securely:
Reference
Builder methods
Builder methods
input (impl Into<String>, required) - research query or task description.Search configuration
Search configuration
DeepResearchSearchConfig (passed via with_search()) controls which sources are queried. Request-level parameters are enforced and cannot be overridden by the agent.web, academic, finance, health, medical, chemistry, genomics, physics, patent, transportation, politics, legal, cybersecurity, environment, automotive, compliance, pulse. You can also pass dataset ids, domains, or collection:<name>. Date filters apply to both publication and event dates. See the DeepResearch Guide for full detail.Deliverables and file attachments
Deliverables and file attachments
Client methods
Client methods
Response types
Response types
Error handling
Error handling
deepresearch_wait errors when the task is cancelled or the timeout is exceeded - use a longer timeout for heavy/max mode.
