1strict_string_enum!(ResponseStatus {
2 Completed => "completed",
3 Failed => "failed",
4 InProgress => "in_progress",
5 Cancelled => "cancelled",
6 Queued => "queued",
7 Incomplete => "incomplete",
8});
9strict_string_enum!(IncompleteReason {
10 MaxOutputTokens => "max_output_tokens",
11 ContentFilter => "content_filter",
12 Steered => "steered",
13});
14extensible_string_enum!(ResponseErrorCode, ResponseErrorCodeKnown {
15 ServerError => "server_error",
16 RateLimitExceeded => "rate_limit_exceeded",
17 InvalidPrompt => "invalid_prompt",
18 VectorStoreTimeout => "vector_store_timeout",
19 InvalidImage => "invalid_image",
20 InvalidImageFormat => "invalid_image_format",
21 InvalidBase64Image => "invalid_base64_image",
22 InvalidImageUrl => "invalid_image_url",
23 ImageTooLarge => "image_too_large",
24 ImageTooSmall => "image_too_small",
25 ImageParseError => "image_parse_error",
26 ImageContentPolicyViolation => "image_content_policy_violation",
27 InvalidImageMode => "invalid_image_mode",
28 ImageFileTooLarge => "image_file_too_large",
29 UnsupportedImageMediaType => "unsupported_image_media_type",
30 EmptyImageFile => "empty_image_file",
31 FailedToDownloadImage => "failed_to_download_image",
32 ImageFileNotFound => "image_file_not_found",
33 DataResidencyMismatch => "data_residency_mismatch",
34 MisalignmentPolicyViolation => "misalignment_policy_violation",
35});
36strict_string_enum!(ResponseItemLifecycleStatus {
37 InProgress => "in_progress",
38 Completed => "completed",
39 Incomplete => "incomplete",
40});
41strict_string_enum!(ResponseFileSearchCallStatus {
42 InProgress => "in_progress",
43 Searching => "searching",
44 Completed => "completed",
45 Incomplete => "incomplete",
46 Failed => "failed",
47});
48strict_string_enum!(ResponseWebSearchCallStatus {
49 InProgress => "in_progress",
50 Searching => "searching",
51 Completed => "completed",
52 Failed => "failed",
53});
54strict_string_enum!(ResponseComputerCallOutputStatus {
55 InProgress => "in_progress",
56 Completed => "completed",
57 Incomplete => "incomplete",
58 Failed => "failed",
59});
60strict_string_enum!(ResponseImageGenerationCallStatus {
61 InProgress => "in_progress",
62 Completed => "completed",
63 Generating => "generating",
64 Failed => "failed",
65});
66strict_string_enum!(ResponseCodeInterpreterCallStatus {
67 InProgress => "in_progress",
68 Completed => "completed",
69 Incomplete => "incomplete",
70 Interpreting => "interpreting",
71 Failed => "failed",
72});
73strict_string_enum!(ResponseApplyPatchCallStatus {
74 InProgress => "in_progress",
75 Completed => "completed",
76});
77strict_string_enum!(ResponseApplyPatchCallOutputStatus {
78 Completed => "completed",
79 Failed => "failed",
80});
81strict_string_enum!(ResponseMcpCallStatus {
82 InProgress => "in_progress",
83 Completed => "completed",
84 Incomplete => "incomplete",
85 Calling => "calling",
86 Failed => "failed",
87});
88extensible_string_enum!(ReasoningContext, ReasoningContextKnown {
89 Auto => "auto",
90 CurrentTurn => "current_turn",
91 AllTurns => "all_turns",
92});
93strict_string_enum!(ResponsePhase {
94 Commentary => "commentary",
95 FinalAnswer => "final_answer",
96});
97extensible_string_enum!(ResponseItemType, ResponseItemTypeKnown {
98 Message => "message",
99 FileSearchCall => "file_search_call",
100 ComputerCall => "computer_call",
101 ComputerCallOutput => "computer_call_output",
102 WebSearchCall => "web_search_call",
103 FunctionCall => "function_call",
104 FunctionCallOutput => "function_call_output",
105 ToolSearchCall => "tool_search_call",
106 ToolSearchOutput => "tool_search_output",
107 AdditionalTools => "additional_tools",
108 Reasoning => "reasoning",
109 Compaction => "compaction",
110 ImageGenerationCall => "image_generation_call",
111 CodeInterpreterCall => "code_interpreter_call",
112 LocalShellCall => "local_shell_call",
113 LocalShellCallOutput => "local_shell_call_output",
114 ShellCall => "shell_call",
115 ShellCallOutput => "shell_call_output",
116 ApplyPatchCall => "apply_patch_call",
117 ApplyPatchCallOutput => "apply_patch_call_output",
118 McpListTools => "mcp_list_tools",
119 McpApprovalRequest => "mcp_approval_request",
120 McpApprovalResponse => "mcp_approval_response",
121 McpCall => "mcp_call",
122 CustomToolCall => "custom_tool_call",
123 CustomToolCallOutput => "custom_tool_call_output",
124 Program => "program",
125 ProgramOutput => "program_output",
126 MultiAgentCall => "multi_agent_call",
127 MultiAgentCallOutput => "multi_agent_call_output",
128 AgentMessage => "agent_message",
129 ConfigurationUpdate => "configuration_update",
130 CompactionTrigger => "compaction_trigger",
131 ItemReference => "item_reference",
132});
133strict_string_enum!(ResponseIncludable {
134 FileSearchCallResults => "file_search_call.results",
135 WebSearchCallResults => "web_search_call.results",
136 WebSearchCallActionSources => "web_search_call.action.sources",
137 MessageInputImageImageUrl => "message.input_image.image_url",
138 ComputerCallOutputOutputImageUrl => "computer_call_output.output.image_url",
139 CodeInterpreterCallOutputs => "code_interpreter_call.outputs",
140 ReasoningEncryptedContent => "reasoning.encrypted_content",
141 MessageOutputTextLogprobs => "message.output_text.logprobs",
142});
143extensible_string_enum!(ResponseStreamEventType, ResponseStreamEventTypeKnown {
144 ResponseCreated => "response.created",
145 ResponseInProgress => "response.in_progress",
146 ResponseCompleted => "response.completed",
147 ResponseFailed => "response.failed",
148 ResponseIncomplete => "response.incomplete",
149 ResponseQueued => "response.queued",
150 ResponseInjectCreated => "response.inject.created",
151 ResponseInjectFailed => "response.inject.failed",
152 ResponseSteerAccepted => "response.steer.accepted",
153 ResponseSteerPending => "response.steer.pending",
154 ResponseSteerFailed => "response.steer.failed",
155 ResponseOutputItemAdded => "response.output_item.added",
156 ResponseOutputItemDone => "response.output_item.done",
157 ResponseContentPartAdded => "response.content_part.added",
158 ResponseContentPartDone => "response.content_part.done",
159 ResponseOutputTextDelta => "response.output_text.delta",
160 ResponseOutputTextDone => "response.output_text.done",
161 ResponseOutputTextAnnotationAdded => "response.output_text.annotation.added",
162 ResponseFunctionCallArgumentsDelta => "response.function_call_arguments.delta",
163 ResponseFunctionCallArgumentsDone => "response.function_call_arguments.done",
164 ResponseCustomToolCallInputDelta => "response.custom_tool_call_input.delta",
165 ResponseCustomToolCallInputDone => "response.custom_tool_call_input.done",
166 ResponseRefusalDelta => "response.refusal.delta",
167 ResponseRefusalDone => "response.refusal.done",
168 ResponseReasoningSummaryPartAdded => "response.reasoning_summary_part.added",
169 ResponseReasoningSummaryPartDone => "response.reasoning_summary_part.done",
170 ResponseReasoningSummaryTextDelta => "response.reasoning_summary_text.delta",
171 ResponseReasoningSummaryTextDone => "response.reasoning_summary_text.done",
172 ResponseReasoningTextDelta => "response.reasoning_text.delta",
173 ResponseReasoningTextDone => "response.reasoning_text.done",
174 ResponseAudioDelta => "response.audio.delta",
175 ResponseAudioDone => "response.audio.done",
176 ResponseAudioTranscriptDelta => "response.audio.transcript.delta",
177 ResponseAudioTranscriptDone => "response.audio.transcript.done",
178 ResponseImageGenerationCallCompleted => "response.image_generation_call.completed",
179 ResponseImageGenerationCallGenerating => "response.image_generation_call.generating",
180 ResponseImageGenerationCallInProgress => "response.image_generation_call.in_progress",
181 ResponseImageGenerationCallPartialImage => "response.image_generation_call.partial_image",
182 ResponseFileSearchCallInProgress => "response.file_search_call.in_progress",
183 ResponseFileSearchCallSearching => "response.file_search_call.searching",
184 ResponseFileSearchCallCompleted => "response.file_search_call.completed",
185 ResponseWebSearchCallInProgress => "response.web_search_call.in_progress",
186 ResponseWebSearchCallSearching => "response.web_search_call.searching",
187 ResponseWebSearchCallCompleted => "response.web_search_call.completed",
188 ResponseCodeInterpreterCallInProgress => "response.code_interpreter_call.in_progress",
189 ResponseCodeInterpreterCallInterpreting => "response.code_interpreter_call.interpreting",
190 ResponseCodeInterpreterCallCompleted => "response.code_interpreter_call.completed",
191 ResponseCodeInterpreterCallCodeDelta => "response.code_interpreter_call_code.delta",
192 ResponseCodeInterpreterCallCodeDone => "response.code_interpreter_call_code.done",
193 ResponseMcpCallArgumentsDelta => "response.mcp_call_arguments.delta",
194 ResponseMcpCallArgumentsDone => "response.mcp_call_arguments.done",
195 ResponseMcpCallInProgress => "response.mcp_call.in_progress",
196 ResponseMcpCallCompleted => "response.mcp_call.completed",
197 ResponseMcpCallFailed => "response.mcp_call.failed",
198 ResponseMcpListToolsInProgress => "response.mcp_list_tools.in_progress",
199 ResponseMcpListToolsCompleted => "response.mcp_list_tools.completed",
200 ResponseMcpListToolsFailed => "response.mcp_list_tools.failed",
201 Error => "error",
202});