You.com web_search returns excerpts; get_page fetches the full page
You.com web_search returns excerpts; get_page fetches the full page. Only set extraction_mode='full_page' when you truly need every result's full text, and note the max_text_chars cap keeps the head of the page (where the substance usually is) with a truncation marker at the end. Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
Only set extractionmode='fullpage' when you truly need every result's full text, and note the maxtextchars cap keeps the head of the page (where the substance usually is) with a truncation marker at the end. If You.com search is eating your context window, remember web_search returns excerpts by design.
Fix
Only set extractionmode='fullpage' when you truly need every result's full text, and note the maxtextchars cap keeps the head of the page (where the substance usually is) with a truncation marker at the end. Expected: You get the expected result; the problem is gone.
When to use
- You are dealing with this situation.
- The symptom matches: You.com websearch returns excerpts; getpage fetches the full page.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source.
Variant phrasings
You.com websearch returns excerpts; getpage fetches the full page
Why it happens
Docs (pydantic-ai-harness You.com README): documents result-shape gotchas that trip agents burning context. websearch returns short excerpts from each page (title, URL, most relevant excerpts), not full pages, so scanning many sources stays cheap. Use getpage to fetch one promising URL's markdown. Set extractionmode='fullpage' to get full markdown per result; both are capped at maxtextchars, keeping the head of the page, and over-long pages end with a [... page text truncated at N characters] marker.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.