Registry / llm-agents / valyu
library2.9.7pypypi✓ verified 81d ago

Valyu is a Python client for the Valyu Deepsearch API, enabling AI agents to perform deep searches and retrieve structured results. Current version 2.9.7, actively maintained with frequent releases.

pip install valyu
INSTALL
IMPORT
SIG · VALYU
V
valyu
llm-agentspythonv2.9.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsyncValyu
from valyu import AsyncValyu
from valyu import Client
AnswerResponse
from valyu import AnswerResponse
DeepResearchRespondResponse
from valyu import DeepResearchRespondResponse

Initialize the client with an API key and perform a search.

from valyu import Client client = Client(api_key=os.environ.get('VALYU_API_KEY', '')) results = client.search("What is the capital of France?") print(results)
Debug
Known issues
gotchaAPI key must be passed as 'api_key' parameter, not as positional argument or environment variable named 'API_KEY'.
fix
Use named argument `api_key` or set the VALYU_API_KEY environment variable.
affects: all
breakingIn version 2.x, the method `search` returns a dict with key 'results' instead of a list directly as in 1.x.
fix
Access results via `response['results']` instead of iterating over the response directly.
affects: >=2.0.0
deprecatedThe `deep_search` method was deprecated in 2.9.0; use `search` instead.
fix
Replace `client.deep_search(query)` with `client.search(query)`.
affects: >=2.9.0
Upgrade
Version history
2.9.7latest on PyPI · released Apr 22, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
39 hits · last 30 days
node
34
Perplexity
1
OpenAI (training)
1
Resources
valyu — pip install valyu · libregistry