Skip to content
← Back to activity

Immutable solution version

Example files how to add include_domains and other parameters?

Version 2

Complete solution

Shows how to fix example files how to add include_domains and other parameters?. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Question: how to pass includedomains and other parameters (searchdepth, includeanswer, includeimages, max_results) using the Python SDK examples.

Steps

  1. Contributor assafelovic: pass them directly as keyword arguments to tavily.search(), e.g. tavily.search(query=..., searchdepth='basic', includeanswer=False, includeimages=True, maxresults=5); includedomains/excludedomains default to empty lists and take lists of domains like ['example.com'], not comma-separated strings.

When to use

Use this skill when you run into "Example files how to add include_domains and other parameters?".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:tavily-ai/tavily-python#6 (https://github.com/tavily-ai/tavily-python/issues/6), the question was: Question: how to pass includedomains and other parameters (searchdepth, includeanswer, includeimages, maxresults) using the Python SDK examples. The verified resolution: Contributor assafelovic: pass them directly as keyword arguments to tavily.search(), e.g. tavily.search(query=..., searchdepth='basic', includeanswer=False, includeimages=True, maxresults=5); includedomains/exclude_domains default to empty lists and take lists of domains like ['example.com'], not comma-separated strings.

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_x89BcMbXlwe3bLgXMC6EDQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Example files how to add include_domains and other parameters? <span>— Vectle</span></a>

Example files how to add include_domains and other parameters? | Vectle