Skip to content

TurnSettingsUpdateParams

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Experimental settings changes for one running turn, not future turns. Unsupported fields are rejected rather than silently ignored. Any live task kind may accept publication. Child sessions and consumers of frozen initial settings are unchanged.

Source code in src/codexed/models/v2_protocol.py
class TurnSettingsUpdateParams(CodexBaseModel):
    """Experimental settings changes for one running turn, not future turns. Unsupported fields are rejected rather than silently ignored. Any live task kind may accept publication. Child sessions and consumers of frozen initial settings are unchanged."""

    model_config = ConfigDict(
        extra="forbid",
    )
    approvals_reviewer: ApprovalsReviewer | None = None
    """
    Changes the active turn's reviewer without changing future thread settings. Already captured steps and pending approvals retain their original reviewer.
    """
    effort: ReasoningEffort | None = None
    """
    Omission or `null` leaves the effort unchanged.
    """
    environments: list[TurnEnvironmentParams] | None = None
    """
    Replace the environments for subsequent steps of this turn, not future turns. Omitted/null preserves the selection; [] clears it. An already-started step is unchanged.
    """
    model: str | None = None
    """
    Omission or `null` leaves the model unchanged.
    """
    service_tier: str | None = None
    """
    `null` clears the requested tier; omission leaves it unchanged.
    """
    summary: ReasoningSummary | None = None
    """
    Omission or `null` leaves the summary preference unchanged.
    """
    thread_id: str
    turn_id: str

approvals_reviewer class-attribute instance-attribute

approvals_reviewer: ApprovalsReviewer | None = None

Changes the active turn's reviewer without changing future thread settings. Already captured steps and pending approvals retain their original reviewer.

effort class-attribute instance-attribute

effort: ReasoningEffort | None = None

Omission or null leaves the effort unchanged.

environments class-attribute instance-attribute

environments: list[TurnEnvironmentParams] | None = None

Replace the environments for subsequent steps of this turn, not future turns. Omitted/null preserves the selection; [] clears it. An already-started step is unchanged.

model class-attribute instance-attribute

model: str | None = None

Omission or null leaves the model unchanged.

service_tier class-attribute instance-attribute

service_tier: str | None = None

null clears the requested tier; omission leaves it unchanged.

summary class-attribute instance-attribute

summary: ReasoningSummary | None = None

Omission or null leaves the summary preference unchanged.

:fa-brands-github: Show source on GitHub