Skip to content

ThreadSampleParams

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ThreadSampleParams(CodexBaseModel):
    allow_in_progress_turn: bool | None = None
    """
    Allow sampling the latest turn before it finishes.
    """
    disable_mcp: bool | None = None
    """
    Disable MCP servers when the inherited window uses incremental tools on Responses Lite.
    """
    effort: ReasoningEffort | None = None
    """
    Applied only when the provider and model support cache-preserving reasoning-effort updates.
    """
    expected_turn_id: str
    """
    The loaded source's latest turn, which must be finished (completed, failed, or interrupted) unless `allowInProgressTurn` is true.
    """
    interrupt_on_cancel: bool | None = None
    """
    Override upstream interruption on cancellation for this sample; otherwise inherit the parent.
    """
    prompt: str
    responsesapi_client_metadata: dict[str, Any] | None = None
    """
    Optional metadata to enrich Codex's ResponsesAPI turn metadata.
    """
    thread_id: str
    thread_source: ThreadSource | None = None
    turn_trigger: str | None = None

allow_in_progress_turn class-attribute instance-attribute

allow_in_progress_turn: bool | None = None

Allow sampling the latest turn before it finishes.

disable_mcp class-attribute instance-attribute

disable_mcp: bool | None = None

Disable MCP servers when the inherited window uses incremental tools on Responses Lite.

effort class-attribute instance-attribute

effort: ReasoningEffort | None = None

Applied only when the provider and model support cache-preserving reasoning-effort updates.

expected_turn_id instance-attribute

expected_turn_id: str

The loaded source's latest turn, which must be finished (completed, failed, or interrupted) unless allowInProgressTurn is true.

interrupt_on_cancel class-attribute instance-attribute

interrupt_on_cancel: bool | None = None

Override upstream interruption on cancellation for this sample; otherwise inherit the parent.

responsesapi_client_metadata class-attribute instance-attribute

responsesapi_client_metadata: dict[str, Any] | None = None

Optional metadata to enrich Codex's ResponsesAPI turn metadata.

:fa-brands-github: Show source on GitHub