docs(websearch): drop the docstring paragraphs the fix reworded

This commit is contained in:
mateo-berri 2026-09-18 18:02:25 -07:00
parent c65f11bf0f
commit 5e0ad06725
2 changed files with 0 additions and 12 deletions

View file

@ -1354,11 +1354,6 @@ class WebSearchInterceptionLogger(CustomLogger):
) -> tuple[AgenticLoopRequestPatch, tuple[SearchOutcome, ...]]:
"""
Execute litellm.search() and build follow-up request patch.
Returns the patch alongside the parallel tuple of search outcomes (one
per tool_call). The caller uses these to optionally build
Anthropic-native ``web_search_tool_result`` content blocks for the
final response and to decide whether a follow-up call is worth making.
"""
# Extract search queries from tool_use blocks

View file

@ -1446,13 +1446,6 @@ def _flattenable_web_search_tool_result(block: object) -> _ReplayedWebSearchTool
"""
The parsed block when it is a ``web_search_tool_result`` carrying no
``encrypted_content``, else None for anything Anthropic itself issued.
An empty ``content`` list is flattenable too. It is what the interceptor emits
when a search legitimately returns nothing, and it carries neither evidence to
preserve nor an ``encrypted_content`` to respect, so leaving it in place only
buys the 400 this whole function exists to avoid. The same goes for the
``web_search_tool_result_error`` object the interceptor emits when a search
raises: it never carries ``encrypted_content``, so it is flattened as well.
"""
try:
parsed: Final = _WEB_SEARCH_TOOL_RESULT_ADAPTER.validate_python(block)