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