Skip to content

ThreadSearchTextRange

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

UTF-16 code-unit range within snippet.

Source code in src/codexed/models/v2_protocol.py
class ThreadSearchTextRange(CodexBaseModel):
    """UTF-16 code-unit range within `snippet`."""

    end: int = Field(..., ge=0)
    """
    Exclusive UTF-16 code-unit offset.
    """
    start: int = Field(..., ge=0)
    """
    Inclusive UTF-16 code-unit offset.
    """

end class-attribute instance-attribute

end: int = Field(..., ge=0)

Exclusive UTF-16 code-unit offset.

start class-attribute instance-attribute

start: int = Field(..., ge=0)

Inclusive UTF-16 code-unit offset.

:fa-brands-github: Show source on GitHub