Skip to content

ThreadRevertResponse

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ThreadRevertResponse(CodexBaseModel):
    items_backwards_cursor: str | None = None
    """
    Opaque cursor for hydrating paginated items backwards.

    Pass this as `cursor` to `thread/items/list` with `sortDirection: "desc"`. The first page includes the item identified by the cursor.
    """
    thread: Thread
    """
    Updated loaded thread metadata. `turns` is always empty; hydrate retained history through `thread/turns/list`.
    """
    turns_backwards_cursor: str | None = None
    """
    Opaque cursor for hydrating paginated turns backwards.

    Pass this as `cursor` to `thread/turns/list` with `sortDirection: "desc"`. The first page includes the turn identified by the cursor.
    """

items_backwards_cursor class-attribute instance-attribute

items_backwards_cursor: str | None = None

Opaque cursor for hydrating paginated items backwards.

Pass this as cursor to thread/items/list with sortDirection: "desc". The first page includes the item identified by the cursor.

thread instance-attribute

thread: Thread

Updated loaded thread metadata. turns is always empty; hydrate retained history through thread/turns/list.

turns_backwards_cursor class-attribute instance-attribute

turns_backwards_cursor: str | None = None

Opaque cursor for hydrating paginated turns backwards.

Pass this as cursor to thread/turns/list with sortDirection: "desc". The first page includes the turn identified by the cursor.

:fa-brands-github: Show source on GitHub