v2_types
Class info¶
🛈 DocStrings¶
Generated scalar and literal type aliases from the Codex v2 protocol schema.
AbsolutePathBuf
¶
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
¶
Backend routing policy. Wire values match the accounts/check contract.
ApprovalsReviewer
¶
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
¶
Selects which part of the active context is charged against model_auto_compact_token_limit.
AutoReviewDecisionSource
¶
[UNSTABLE] Source that produced a terminal approval auto-review decision.
CommandExecOutputStream
¶
Stream label for command/exec/outputDelta notifications.
CyberAccessProgram
¶
Requested cyber treatment for an OpenAI model turn. Authorization and model-tier restrictions remain server-owned.
EnvironmentStatusKind
¶
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
¶
Backward-compatible API shape for ChatGPT workspace login restrictions.
GuardianApprovalReviewStatus
¶
[UNSTABLE] Lifecycle state for an approval auto-review.
GuardianAssessmentOutcome
¶
Final allow/deny outcome returned by the guardian reviewer.
GuardianRiskLevel
¶
[UNSTABLE] Risk level assigned by approval auto-review.
GuardianUserAuthorization
¶
[UNSTABLE] Authorization level assigned by approval auto-review.
InputModality
¶
Canonical user-input modality tags advertised by a model.
MessagePhase
¶
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
¶
Initial collaboration mode to use when the TUI starts.
MultiAgentVersion
¶
Multi-agent runtime supported by a model.
Personality
¶
Deprecated: friendly and pragmatic no longer select a style.
ProcessOutputStream
¶
Stream label for process/outputDelta notifications.
ReasoningEffort
¶
A non-empty reasoning effort value advertised by the model.
ReasoningSummary
¶
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
¶
Result of attempting to associate an attachment with a thread.
ThreadAttachmentOperation
¶
The persisted attachment change represented by a notification.
ThreadGoalMutationOrigin
¶
Distinguishes explicit user actions from automatic goal lifecycle mutations.
ToolExposureSurface
¶
A model-facing surface on which a tool can be exposed.
Verbosity
¶
Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.
WebSearchProvider
¶
Provider preference selected by the resolved model catalog entry.