Skip to content

ThreadStartParams

Base classes

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

â‹” Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ThreadStartParams(CodexBaseModel):
    allow_provider_model_fallback: bool | None = None
    """
    Allow a provider with an authoritative static model catalog to replace an unavailable requested model with its default.
    """
    approval_policy: AskForApproval | None = None
    approvals_reviewer: ApprovalsReviewer | None = None
    """
    Override where approval requests are routed for review on this thread and subsequent turns.
    """
    base_instructions: str | None = None
    config: dict[str, Any] | None = None
    cwd: str | None = None
    daybreak_enabled: bool | None = None
    """
    Initial Daybreak choice for this persistent thread. Omitted or null leaves it unset. This does not select a turn's `cyberAccessProgram` or grant access. Not supported for ephemeral threads.
    """
    developer_instructions: str | None = None
    dynamic_tools: list[DynamicToolSpec] | None = None
    environments: list[TurnEnvironmentParams] | None = None
    """
    Optional sticky environments for this thread.

    Omitted selects the default environment when environment access is enabled. Empty disables environment access for turns that do not provide a turn override. Non-empty selects the first environment as the current turn environment.
    """
    ephemeral: bool | None = None
    experimental_raw_events: bool | None = None
    """
    If true, opt into emitting raw Responses API items on the event stream. This is for internal use only (e.g. Codex Cloud).
    """
    history_mode: ThreadHistoryMode | None = None
    """
    Persisted thread history contract to use for this new thread.
    """
    mock_experimental_field: str | None = None
    """
    Test-only experimental field used to validate experimental gating and schema filtering behavior in a stable way.
    """
    model: str | None = None
    model_provider: str | None = None
    multi_agent_mode: MultiAgentMode | None = None
    """
    @deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior.
    """
    permissions: str | None = None
    """
    Named profile id for this thread. Cannot be combined with `sandbox`.
    """
    personality: Personality | None = None
    """
    @deprecated `friendly` and `pragmatic` no longer select a style.
    """
    project_id: str | None = None
    """
    Optional project identity for this new thread. Durable threads persist the assignment; ephemeral threads expose it only in live responses.
    """
    runtime_workspace_roots: list[AbsolutePathBuf] | None = None
    """
    Replace the thread's runtime workspace roots. Paths must be absolute.
    """
    sandbox: SandboxMode | None = None
    selected_capability_roots: list[SelectedCapabilityRoot] | None = None
    """
    Capability roots selected for this thread by the hosting platform.
    """
    service_name: str | None = None
    service_tier: str | None = None
    session_start_source: ThreadStartSource | None = None
    thread_source: ThreadSource | None = None
    """
    Optional client-supplied analytics source classification for this thread.
    """

allow_provider_model_fallback class-attribute instance-attribute

allow_provider_model_fallback: bool | None = None

Allow a provider with an authoritative static model catalog to replace an unavailable requested model with its default.

approvals_reviewer class-attribute instance-attribute

approvals_reviewer: ApprovalsReviewer | None = None

Override where approval requests are routed for review on this thread and subsequent turns.

daybreak_enabled class-attribute instance-attribute

daybreak_enabled: bool | None = None

Initial Daybreak choice for this persistent thread. Omitted or null leaves it unset. This does not select a turn's cyberAccessProgram or grant access. Not supported for ephemeral threads.

environments class-attribute instance-attribute

environments: list[TurnEnvironmentParams] | None = None

Optional sticky environments for this thread.

Omitted selects the default environment when environment access is enabled. Empty disables environment access for turns that do not provide a turn override. Non-empty selects the first environment as the current turn environment.

experimental_raw_events class-attribute instance-attribute

experimental_raw_events: bool | None = None

If true, opt into emitting raw Responses API items on the event stream. This is for internal use only (e.g. Codex Cloud).

history_mode class-attribute instance-attribute

history_mode: ThreadHistoryMode | None = None

Persisted thread history contract to use for this new thread.

mock_experimental_field class-attribute instance-attribute

mock_experimental_field: str | None = None

Test-only experimental field used to validate experimental gating and schema filtering behavior in a stable way.

multi_agent_mode class-attribute instance-attribute

multi_agent_mode: MultiAgentMode | None = None

@deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior.

permissions class-attribute instance-attribute

permissions: str | None = None

Named profile id for this thread. Cannot be combined with sandbox.

personality class-attribute instance-attribute

personality: Personality | None = None

@deprecated friendly and pragmatic no longer select a style.

project_id class-attribute instance-attribute

project_id: str | None = None

Optional project identity for this new thread. Durable threads persist the assignment; ephemeral threads expose it only in live responses.

runtime_workspace_roots class-attribute instance-attribute

runtime_workspace_roots: list[AbsolutePathBuf] | None = None

Replace the thread's runtime workspace roots. Paths must be absolute.

selected_capability_roots class-attribute instance-attribute

selected_capability_roots: list[SelectedCapabilityRoot] | None = None

Capability roots selected for this thread by the hosting platform.

thread_source class-attribute instance-attribute

thread_source: ThreadSource | None = None

Optional client-supplied analytics source classification for this thread.

:fa-brands-github: Show source on GitHub