You.com API Suite

July 15, 2026 ยท View on GitHub

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 typePurpose
you_web_searchReturn LLM-ready web results with optional live-crawled content, freshness filters, and news results.
you_contentsExtract Markdown, HTML, or metadata from up to 10 URLs.
you_researchRun multi-search, cited open-domain research with a configurable effort level.
you_finance_researchRun 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:

FieldDefaultDescription
api_keynullOptional inline API key. Prefer YDC_API_KEY.
max_retries3Maximum attempts for a failed request.
timeoutnullPer-attempt timeout in seconds. null disables the timeout.

you_web_search also accepts:

FieldDefaultAllowed values or behavior
max_results101โ€“100 results.
safesearchmoderateoff, moderate, or strict.
livecrawl_modeweboff, web, news, or all.
livecrawl_formatmarkdownoff, markdown, or html.
freshnessoffoff, day, week, month, or year.
max_content_length50000Maximum live-crawled characters per result; null is unbounded.
include_news_resultsfalseInclude results classified as news.

Research and contents functions accept these fields:

FunctionFieldDefaultAllowed values or behavior
you_researchresearch_effortstandardlite, standard, deep, or exhaustive.
you_finance_researchresearch_effortdeepdeep or exhaustive.
you_contentsformats[markdown, metadata]Any combination of markdown, html, and metadata.
you_contentscrawl_timeoutnullPer-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.