Skip to content

WebSearchThreadItem

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  1062323427["v2_protocol.WebSearchThreadItem"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 1062323427
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

A thread item and its recorded lifecycle times. The payload stays flat on the wire.

Source code in src/codexed/models/v2_protocol.py
class WebSearchThreadItem(CodexBaseModel):
    """A thread item and its recorded lifecycle times. The payload stays flat on the wire."""

    completed_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item completed, if recorded.
    """
    started_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item started, if recorded.
    """
    action: WebSearchAction | None = None
    id: str
    query: str
    results: list[Any] | None = None
    """
    Structured search results returned out-of-band by standalone web search.

    These stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.
    """
    type: Literal["webSearch"] = "webSearch"

completed_at_ms class-attribute instance-attribute

completed_at_ms: int | None = None

Unix timestamp in milliseconds when the item completed, if recorded.

results class-attribute instance-attribute

results: list[Any] | None = None

Structured search results returned out-of-band by standalone web search.

These stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.

started_at_ms class-attribute instance-attribute

started_at_ms: int | None = None

Unix timestamp in milliseconds when the item started, if recorded.

:fa-brands-github: Show source on GitHub