Skip to content

ThreadSearchOccurrence

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

One visible message occurrence returned by [ThreadSearchOccurrencesResponse].

Source code in src/codexed/models/v2_protocol.py
class ThreadSearchOccurrence(CodexBaseModel):
    """One visible message occurrence returned by [`ThreadSearchOccurrencesResponse`]."""

    item_id: str
    snippet: str
    snippet_match_range: ThreadSearchTextRange
    """
    Match range within `snippet`, in UTF-16 code units.
    """
    turn_cursor: str
    """
    Opaque inclusive cursor accepted by `thread/turns/list` for this turn.
    """
    turn_id: str

snippet_match_range instance-attribute

snippet_match_range: ThreadSearchTextRange

Match range within snippet, in UTF-16 code units.

turn_cursor instance-attribute

turn_cursor: str

Opaque inclusive cursor accepted by thread/turns/list for this turn.

:fa-brands-github: Show source on GitHub