You.com API Suite#
AI-Q includes four NeMo Agent Toolkit functions backed by the You.com API. They can be enabled independently or grouped into one entry in the data source registry.
Function type |
Purpose |
|---|---|
|
Return LLM-ready web results with optional live-crawled content, freshness filters, and news results. |
|
Extract Markdown, HTML, or metadata from up to 10 URLs. |
|
Run multi-search, cited open-domain research with a configurable effort level. |
|
Run cited research over finance-focused sources such as filings, earnings, and market data. |
Prerequisites#
The standard ./scripts/setup.sh flow installs the sources/you_com plugin. For an existing environment, install it
directly:
uv pip install -e ./sources/you_com
Create a key using the You.com API quickstart, then add it to deploy/.env:
YDC_API_KEY=<you-com-api-key>
Do not commit deploy/.env. Each function also accepts an api_key field, but the environment variable keeps the
secret out of workflow YAML.
Configure the Tools#
Add only the functions your workflow needs. The following example registers all four under one user-selectable data source:
functions:
you_web_search:
_type: you_web_search
max_results: 10
safesearch: moderate
livecrawl_mode: web
livecrawl_format: markdown
freshness: off
include_news_results: false
you_contents:
_type: you_contents
formats: [markdown, metadata]
crawl_timeout: 30
you_research:
_type: you_research
research_effort: standard
you_finance_research:
_type: you_finance_research
research_effort: deep
data_sources:
_type: data_source_registry
sources:
- id: you_com
name: You.com
description: Web search, content extraction, and cited research.
tools:
- you_web_search
- you_contents
- you_research
- you_finance_research
Agents with no explicit tools list inherit these functions from the registry. Request clients can then select the
source with data_sources: ["you_com"]. Refer to Tools and Sources for filtering and
per-agent specialization.
Configuration Reference#
All four functions accept these shared fields:
Field |
Default |
Description |
|---|---|---|
|
|
Optional inline API key. Prefer |
|
|
Maximum attempts for a failed request. |
|
|
Per-attempt timeout in seconds. |
you_web_search also accepts:
Field |
Default |
Allowed values or behavior |
|---|---|---|
|
|
1–100 results. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Maximum live-crawled characters per result; |
|
|
Include results classified as news. |
Research and contents functions accept these fields:
Function |
Field |
Default |
Allowed values or behavior |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Any combination of |
|
|
|
Per-URL crawl timeout from 1 to 60 seconds. |
When YDC_API_KEY and api_key are both absent, AI-Q still starts and registers diagnostic stubs for the configured
functions. Calls return an actionable missing-key error instead of failing workflow initialization.