Skip to content

v2_types

Class info

🛈 DocStrings

Generated scalar and literal type aliases from the Codex v2 protocol schema.

AbsolutePathBuf

AbsolutePathBuf = str

A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).

IMPORTANT: When deserializing an AbsolutePathBuf, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.

AccountRoutingOverride

AccountRoutingOverride = Literal['NO_CONSTRAINT', 'us', 'us_cr']

Backend routing policy. Wire values match the accounts/check contract.

ApprovalsReviewer

ApprovalsReviewer = Literal['user', 'auto_review', 'guardian_subagent']

Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to user. auto_review uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value guardian_subagent is accepted for compatibility.

AuthMode

AuthMode = Literal[
    "apikey",
    "chatgpt",
    "chatgptAuthTokens",
    "headers",
    "agentIdentity",
    "personalAccessToken",
    "bedrockApiKey",
    "bedrockAccessKeys",
]

Authentication mode for OpenAI-backed providers.

AutoCompactTokenLimitScope

AutoCompactTokenLimitScope = Literal['total', 'body_after_prefix']

Selects which part of the active context is charged against model_auto_compact_token_limit.

AutoReviewDecisionSource

AutoReviewDecisionSource = Literal['agent']

[UNSTABLE] Source that produced a terminal approval auto-review decision.

CommandExecOutputStream

CommandExecOutputStream = Literal['stdout', 'stderr']

Stream label for command/exec/outputDelta notifications.

CyberAccessProgram

CyberAccessProgram = Literal['standard', 'daybreakBlue', 'daybreakRed']

Requested cyber treatment for an OpenAI model turn. Authorization and model-tier restrictions remain server-owned.

EnvironmentStatusKind

EnvironmentStatusKind = Literal['ready', 'pending', 'disconnected', 'unknown']

Current status observed by app-server without starting or recovering an environment.

For a currently ready remote environment, app-server asks the existing exec-server connection for environment/status without allowing recovery.

ForcedChatgptWorkspaceIds

ForcedChatgptWorkspaceIds = str | list[str]

Backward-compatible API shape for ChatGPT workspace login restrictions.

GuardianApprovalReviewStatus

GuardianApprovalReviewStatus = Literal['inProgress', 'approved', 'denied', 'timedOut', 'aborted']

[UNSTABLE] Lifecycle state for an approval auto-review.

GuardianAssessmentOutcome

GuardianAssessmentOutcome = Literal['allow', 'deny']

Final allow/deny outcome returned by the guardian reviewer.

GuardianRiskLevel

GuardianRiskLevel = Literal['low', 'medium', 'high', 'critical']

[UNSTABLE] Risk level assigned by approval auto-review.

GuardianUserAuthorization

GuardianUserAuthorization = Literal['unknown', 'low', 'medium', 'high']

[UNSTABLE] Authorization level assigned by approval auto-review.

InputModality

InputModality = Literal['text', 'image', 'audio']

Canonical user-input modality tags advertised by a model.

MessagePhase

MessagePhase = Literal['commentary', 'partial_answer', 'final_answer']

Classifies assistant text as commentary, a partial answer, or a terminal answer.

Providers do not emit this consistently, so callers must treat None as "phase unknown" and keep compatibility behavior for legacy models.

ModeKind

ModeKind = Literal['plan', 'default']

Initial collaboration mode to use when the TUI starts.

MultiAgentVersion

MultiAgentVersion = Literal['disabled', 'v1', 'v2']

Multi-agent runtime supported by a model.

Personality

Personality = Literal['none', 'friendly', 'pragmatic']

Deprecated: friendly and pragmatic no longer select a style.

ProcessOutputStream

ProcessOutputStream = Literal['stdout', 'stderr']

Stream label for process/outputDelta notifications.

ReasoningEffort

ReasoningEffort = Annotated[str, Field(..., min_length=1)]

A non-empty reasoning effort value advertised by the model.

ReasoningSummary

ReasoningSummary = Literal['auto', 'concise', 'detailed', 'none']

A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries

ThreadAttachmentAddOutcome

ThreadAttachmentAddOutcome = Literal['created', 'existing']

Result of attempting to associate an attachment with a thread.

ThreadAttachmentOperation

ThreadAttachmentOperation = Literal['created', 'deleted']

The persisted attachment change represented by a notification.

ThreadGoalMutationOrigin

ThreadGoalMutationOrigin = Literal['user', 'automatic']

Distinguishes explicit user actions from automatic goal lifecycle mutations.

ToolExposureSurface

ToolExposureSurface = Literal['code_mode', 'deferred', 'direct']

A model-facing surface on which a tool can be exposed.

Verbosity

Verbosity = Literal['low', 'medium', 'high']

Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.

WebSearchProvider

WebSearchProvider = Literal['standalone', 'search_mcp']

Provider preference selected by the resolved model catalog entry.