Skip to content

ThreadRevertParams

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Replace a paginated thread's durable history with the prefix before one turn.

This only changes persisted conversation history. It does not revert local file changes.

Source code in src/codexed/models/v2_protocol.py
class ThreadRevertParams(CodexBaseModel):
    """Replace a paginated thread's durable history with the prefix before one turn.

    This only changes persisted conversation history. It does not revert local file changes.
    """

    before_turn_id: str
    """
    Turn excluded from the replacement history, together with every later turn.
    """
    thread_id: str

before_turn_id instance-attribute

before_turn_id: str

Turn excluded from the replacement history, together with every later turn.

:fa-brands-github: Show source on GitHub