mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
docs(websearch): drop the docstring paragraphs the fix reworded
This commit is contained in:
parent
c65f11bf0f
commit
5e0ad06725
2 changed files with 0 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue