Skip to content

ThreadTurnsListResponse

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ThreadTurnsListResponse(CodexBaseModel):
    backwards_cursor: str | None = None
    """
    Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.
    """
    data: list[Turn]
    next_cursor: str | None = None
    """
    Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.
    """

backwards_cursor class-attribute instance-attribute

backwards_cursor: str | None = None

Opaque cursor to pass as cursor when reversing sortDirection. This is only populated when the page contains at least one turn. Use it with the opposite sortDirection to include the anchor turn again and catch updates to that turn.

next_cursor class-attribute instance-attribute

next_cursor: str | None = None

Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.

:fa-brands-github: Show source on GitHub