For the conceptual overview, search configuration, and best practices, see the DeepResearch Guide. This page is the TypeScript SDK method reference.
Wire up Valyu DeepResearch (autonomous research agent) with the TypeScript SDK.
Basic usage
Research modes
The deprecated
lite mode maps to standard. max requires at least $15 in available credits.Output formats
Waiting for completion
webhook_secret is returned only once on create - store it immediately:
Reference
create() options
create() options
query (string, required) - research query or task description.Tools (code execution, screenshots, browser, charts)
Tools (code execution, screenshots, browser, charts)
All tools are off by default. You enable them; the agent decides when to use them. Each accepts a boolean or Generated screenshots and charts appear in
{ enabled: boolean, max_calls: number } (max_calls can only be lowered from the system default).result.images with image_type of "screenshot" or "chart". See Pricing for surcharges. Code execution is Python-only with a 30s default timeout (5-60s); screenshots are capped at 15 per task and 5 MB each.Deliverables (CSV, Excel, PowerPoint, Word, PDF)
Deliverables (CSV, Excel, PowerPoint, Word, PDF)
Generate formatted documents from the research (max 10 per task, produced after research completes). Use simple strings or the typed
Deliverable:Each
DeliverableResult has id, type, status, title, url (token-signed, expires), row_count/column_count (CSV/Excel), and error if failed.File attachments and URLs
File attachments and URLs
Response format
Response format
cost is the total price (base mode + tool surcharges); cost_breakdown itemizes it.Task management
Task management
See also
DeepResearch Guide
Search config, webhooks, and use cases
Batch Processing
Run many research tasks in parallel
Human-in-the-loop
Pause at checkpoints to guide the agent
API Reference
REST endpoint documentation

