Skip to content

WebSearchOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  480178972["output_types.WebSearchOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 480178972
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the WebSearch tool.

Source code in src/clawd_code_sdk/models/output_types.py
class WebSearchOutput(TypedDict):
    """``tool_use_result`` for the WebSearch tool."""

    query: str
    results: list[WebSearchToolResult | str]
    """Search results and/or text commentary from the model."""
    durationSeconds: float
    searchCount: NotRequired[int]
    """Number of searches performed."""

results instance-attribute

results: list[WebSearchToolResult | str]

Search results and/or text commentary from the model.

searchCount instance-attribute

searchCount: NotRequired[int]

Number of searches performed.

:fa-brands-github: Show source on GitHub