openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/customize-openairesponsescontext-attribute

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

api/OpenAI.Responses.netstandard2.0.cs

1569lines · modecode

1//------------------------------------------------------------------------------
2// <auto-generated>
3// This file is auto-generated by scripts/Export-Api.ps1 and must not be
4// modified manually. To update it, make the necessary source-code changes
5// and re-run scripts/Export-Api.ps1 to regenerate it.
6// </auto-generated>
7//------------------------------------------------------------------------------
8namespace OpenAI.Responses {
9 public class ApplyPatchCallItem : ResponseItem, IJsonModel<ApplyPatchCallItem>, IPersistableModel<ApplyPatchCallItem> {
10 public ApplyPatchCallItem(string callId, ApplyPatchOperation operation);
11 public string CallId { get; set; }
12 public string CreatedBy { get; set; }
13 public ApplyPatchOperation Operation { get; set; }
14 public ApplyPatchCallStatus? Status { get; set; }
15 }
16 public class ApplyPatchCallOutputItem : ResponseItem, IJsonModel<ApplyPatchCallOutputItem>, IPersistableModel<ApplyPatchCallOutputItem> {
17 public ApplyPatchCallOutputItem(string callId, ApplyPatchCallOutputStatus status);
18 public string CallId { get; set; }
19 public string CreatedBy { get; set; }
20 public string Output { get; set; }
21 public ApplyPatchCallOutputStatus Status { get; set; }
22 }
23 public readonly partial struct ApplyPatchCallOutputStatus : IEquatable<ApplyPatchCallOutputStatus> {
24 public ApplyPatchCallOutputStatus(string value);
25 public static ApplyPatchCallOutputStatus Completed { get; }
26 public static ApplyPatchCallOutputStatus Failed { get; }
27 public readonly bool Equals(ApplyPatchCallOutputStatus other);
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public override readonly bool Equals(object obj);
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public override readonly int GetHashCode();
32 public static bool operator ==(ApplyPatchCallOutputStatus left, ApplyPatchCallOutputStatus right);
33 public static implicit operator ApplyPatchCallOutputStatus(string value);
34 public static implicit operator ApplyPatchCallOutputStatus?(string value);
35 public static bool operator !=(ApplyPatchCallOutputStatus left, ApplyPatchCallOutputStatus right);
36 public override readonly string ToString();
37 }
38 public readonly partial struct ApplyPatchCallStatus : IEquatable<ApplyPatchCallStatus> {
39 public ApplyPatchCallStatus(string value);
40 public static ApplyPatchCallStatus Completed { get; }
41 public static ApplyPatchCallStatus InProgress { get; }
42 public readonly bool Equals(ApplyPatchCallStatus other);
43 [EditorBrowsable(EditorBrowsableState.Never)]
44 public override readonly bool Equals(object obj);
45 [EditorBrowsable(EditorBrowsableState.Never)]
46 public override readonly int GetHashCode();
47 public static bool operator ==(ApplyPatchCallStatus left, ApplyPatchCallStatus right);
48 public static implicit operator ApplyPatchCallStatus(string value);
49 public static implicit operator ApplyPatchCallStatus?(string value);
50 public static bool operator !=(ApplyPatchCallStatus left, ApplyPatchCallStatus right);
51 public override readonly string ToString();
52 }
53 public class ApplyPatchCreateFileOperation : ApplyPatchOperation, IJsonModel<ApplyPatchCreateFileOperation>, IPersistableModel<ApplyPatchCreateFileOperation> {
54 public ApplyPatchCreateFileOperation(string filePath, string diff);
55 public string Diff { get; set; }
56 public string FilePath { get; set; }
57 }
58 public class ApplyPatchDeleteFileOperation : ApplyPatchOperation, IJsonModel<ApplyPatchDeleteFileOperation>, IPersistableModel<ApplyPatchDeleteFileOperation> {
59 public ApplyPatchDeleteFileOperation(string filePath);
60 public string FilePath { get; set; }
61 }
62 public class ApplyPatchOperation : IJsonModel<ApplyPatchOperation>, IPersistableModel<ApplyPatchOperation> {
63 [Serialization.JsonIgnore]
64 [EditorBrowsable(EditorBrowsableState.Never)]
65 public ref JsonPatch Patch { get; }
66 }
67 public class ApplyPatchTool : ResponseTool, IJsonModel<ApplyPatchTool>, IPersistableModel<ApplyPatchTool> {
68 public ApplyPatchTool();
69 }
70 public class ApplyPatchUpdateFileOperation : ApplyPatchOperation, IJsonModel<ApplyPatchUpdateFileOperation>, IPersistableModel<ApplyPatchUpdateFileOperation> {
71 public ApplyPatchUpdateFileOperation(string filePath, string diff);
72 public string Diff { get; set; }
73 public string FilePath { get; set; }
74 }
75 public class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel<AutomaticCodeInterpreterToolContainerConfiguration>, IPersistableModel<AutomaticCodeInterpreterToolContainerConfiguration> {
76 public AutomaticCodeInterpreterToolContainerConfiguration();
77 public IList<string> FileIds { get; }
78 }
79 public class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, IJsonModel<CodeInterpreterCallImageOutput>, IPersistableModel<CodeInterpreterCallImageOutput> {
80 public CodeInterpreterCallImageOutput(Uri imageUri);
81 public Uri ImageUri { get; set; }
82 }
83 public class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, IJsonModel<CodeInterpreterCallLogsOutput>, IPersistableModel<CodeInterpreterCallLogsOutput> {
84 public CodeInterpreterCallLogsOutput(string logs);
85 public string Logs { get; set; }
86 }
87 public class CodeInterpreterCallOutput : IJsonModel<CodeInterpreterCallOutput>, IPersistableModel<CodeInterpreterCallOutput> {
88 [Serialization.JsonIgnore]
89 [EditorBrowsable(EditorBrowsableState.Never)]
90 public ref JsonPatch Patch { get; }
91 }
92 public class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel<CodeInterpreterCallResponseItem>, IPersistableModel<CodeInterpreterCallResponseItem> {
93 public CodeInterpreterCallResponseItem(string code);
94 public string Code { get; set; }
95 public string ContainerId { get; set; }
96 public IList<CodeInterpreterCallOutput> Outputs { get; }
97 public CodeInterpreterCallStatus? Status { get; set; }
98 }
99 public enum CodeInterpreterCallStatus {
100 InProgress = 0,
101 Interpreting = 1,
102 Completed = 2,
103 Incomplete = 3,
104 Failed = 4
105 }
106 public class CodeInterpreterTool : ResponseTool, IJsonModel<CodeInterpreterTool>, IPersistableModel<CodeInterpreterTool> {
107 public CodeInterpreterTool(CodeInterpreterToolContainer container);
108 public CodeInterpreterToolContainer Container { get; }
109 }
110 public class CodeInterpreterToolContainer : IJsonModel<CodeInterpreterToolContainer>, IPersistableModel<CodeInterpreterToolContainer> {
111 public CodeInterpreterToolContainer(CodeInterpreterToolContainerConfiguration containerConfiguration);
112 public CodeInterpreterToolContainer(string containerId);
113 public CodeInterpreterToolContainerConfiguration ContainerConfiguration { get; }
114 public string ContainerId { get; }
115 [Serialization.JsonIgnore]
116 [EditorBrowsable(EditorBrowsableState.Never)]
117 public ref JsonPatch Patch { get; }
118 }
119 public class CodeInterpreterToolContainerConfiguration : IJsonModel<CodeInterpreterToolContainerConfiguration>, IPersistableModel<CodeInterpreterToolContainerConfiguration> {
120 [Serialization.JsonIgnore]
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public ref JsonPatch Patch { get; }
123 public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(IEnumerable<string> fileIds = null);
124 }
125 public class ComputerCallAction : IJsonModel<ComputerCallAction>, IPersistableModel<ComputerCallAction> {
126 public Drawing.Point? ClickCoordinates { get; }
127 public ComputerCallActionMouseButton? ClickMouseButton { get; }
128 public Drawing.Point? DoubleClickCoordinates { get; }
129 public IList<Drawing.Point> DragPath { get; }
130 public IList<string> KeyPressKeyCodes { get; }
131 public ComputerCallActionKind Kind { get; }
132 public Drawing.Point? MoveCoordinates { get; }
133 [Serialization.JsonIgnore]
134 [EditorBrowsable(EditorBrowsableState.Never)]
135 public ref JsonPatch Patch { get; }
136 public Drawing.Point? ScrollCoordinates { get; }
137 public int? ScrollHorizontalOffset { get; }
138 public int? ScrollVerticalOffset { get; }
139 public string TypeText { get; }
140 public static ComputerCallAction CreateClickAction(Drawing.Point clickCoordinates, ComputerCallActionMouseButton clickMouseButton);
141 public static ComputerCallAction CreateDoubleClickAction(Drawing.Point doubleClickCoordinates, ComputerCallActionMouseButton doubleClickMouseButton);
142 public static ComputerCallAction CreateDragAction(IList<Drawing.Point> dragPath);
143 public static ComputerCallAction CreateKeyPressAction(IList<string> keyCodes);
144 public static ComputerCallAction CreateMoveAction(Drawing.Point moveCoordinates);
145 public static ComputerCallAction CreateScreenshotAction();
146 public static ComputerCallAction CreateScrollAction(Drawing.Point scrollCoordinates, int horizontalOffset, int verticalOffset);
147 public static ComputerCallAction CreateTypeAction(string typeText);
148 public static ComputerCallAction CreateWaitAction();
149 }
150 public enum ComputerCallActionKind {
151 Click = 0,
152 DoubleClick = 1,
153 Drag = 2,
154 KeyPress = 3,
155 Move = 4,
156 Screenshot = 5,
157 Scroll = 6,
158 Type = 7,
159 Wait = 8
160 }
161 public enum ComputerCallActionMouseButton {
162 Left = 0,
163 Right = 1,
164 Wheel = 2,
165 Back = 3,
166 Forward = 4
167 }
168 public class ComputerCallOutput : IJsonModel<ComputerCallOutput>, IPersistableModel<ComputerCallOutput> {
169 [Serialization.JsonIgnore]
170 [EditorBrowsable(EditorBrowsableState.Never)]
171 public ref JsonPatch Patch { get; }
172 public static ComputerCallOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType);
173 public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId);
174 public static ComputerCallOutput CreateScreenshotOutput(Uri screenshotImageUri);
175 }
176 public class ComputerCallOutputResponseItem : ResponseItem, IJsonModel<ComputerCallOutputResponseItem>, IPersistableModel<ComputerCallOutputResponseItem> {
177 public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output);
178 public IList<ComputerCallSafetyCheck> AcknowledgedSafetyChecks { get; }
179 public string CallId { get; set; }
180 public ComputerCallOutput Output { get; set; }
181 public ComputerCallOutputStatus? Status { get; set; }
182 }
183 public enum ComputerCallOutputStatus {
184 InProgress = 0,
185 Completed = 1,
186 Incomplete = 2
187 }
188 public class ComputerCallResponseItem : ResponseItem, IJsonModel<ComputerCallResponseItem>, IPersistableModel<ComputerCallResponseItem> {
189 public ComputerCallResponseItem(string callId, ComputerCallAction action, IEnumerable<ComputerCallSafetyCheck> pendingSafetyChecks);
190 public ComputerCallAction Action { get; set; }
191 public string CallId { get; set; }
192 public IList<ComputerCallSafetyCheck> PendingSafetyChecks { get; }
193 public ComputerCallStatus? Status { get; set; }
194 }
195 public class ComputerCallSafetyCheck : IJsonModel<ComputerCallSafetyCheck>, IPersistableModel<ComputerCallSafetyCheck> {
196 public ComputerCallSafetyCheck(string id, string code, string message);
197 public string Code { get; set; }
198 public string Id { get; set; }
199 public string Message { get; set; }
200 [Serialization.JsonIgnore]
201 [EditorBrowsable(EditorBrowsableState.Never)]
202 public ref JsonPatch Patch { get; }
203 }
204 public enum ComputerCallStatus {
205 InProgress = 0,
206 Completed = 1,
207 Incomplete = 2
208 }
209 public class ComputerTool : ResponseTool, IJsonModel<ComputerTool>, IPersistableModel<ComputerTool> {
210 public ComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight);
211 public int DisplayHeight { get; set; }
212 public int DisplayWidth { get; set; }
213 public ComputerToolEnvironment Environment { get; set; }
214 }
215 public readonly partial struct ComputerToolEnvironment : IEquatable<ComputerToolEnvironment> {
216 public ComputerToolEnvironment(string value);
217 public static ComputerToolEnvironment Browser { get; }
218 public static ComputerToolEnvironment Linux { get; }
219 public static ComputerToolEnvironment Mac { get; }
220 public static ComputerToolEnvironment Ubuntu { get; }
221 public static ComputerToolEnvironment Windows { get; }
222 public readonly bool Equals(ComputerToolEnvironment other);
223 [EditorBrowsable(EditorBrowsableState.Never)]
224 public override readonly bool Equals(object obj);
225 [EditorBrowsable(EditorBrowsableState.Never)]
226 public override readonly int GetHashCode();
227 public static bool operator ==(ComputerToolEnvironment left, ComputerToolEnvironment right);
228 public static implicit operator ComputerToolEnvironment(string value);
229 public static implicit operator ComputerToolEnvironment?(string value);
230 public static bool operator !=(ComputerToolEnvironment left, ComputerToolEnvironment right);
231 public override readonly string ToString();
232 }
233 public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel<ContainerFileCitationMessageAnnotation>, IPersistableModel<ContainerFileCitationMessageAnnotation> {
234 public ContainerFileCitationMessageAnnotation(string containerId, string fileId, int startIndex, int endIndex, string filename);
235 public string ContainerId { get; set; }
236 public int EndIndex { get; set; }
237 public string FileId { get; set; }
238 public string Filename { get; set; }
239 public int StartIndex { get; set; }
240 }
241 public class CreateResponseOptions : IJsonModel<CreateResponseOptions>, IPersistableModel<CreateResponseOptions> {
242 public CreateResponseOptions();
243 public CreateResponseOptions(string model, IEnumerable<ResponseItem> inputItems);
244 public bool? BackgroundModeEnabled { get; set; }
245 public ResponseConversationOptions ConversationOptions { get; set; }
246 public string EndUserId { get; set; }
247 public IList<IncludedResponseProperty> IncludedProperties { get; }
248 public IList<ResponseItem> InputItems { get; }
249 public string Instructions { get; set; }
250 public int? MaxOutputTokenCount { get; set; }
251 public int? MaxToolCallCount { get; set; }
252 public IDictionary<string, string> Metadata { get; }
253 public string Model { get; set; }
254 public bool? ParallelToolCallsEnabled { get; set; }
255 [Serialization.JsonIgnore]
256 [EditorBrowsable(EditorBrowsableState.Never)]
257 public ref JsonPatch Patch { get; }
258 public string PreviousResponseId { get; set; }
259 public ResponseReasoningOptions ReasoningOptions { get; set; }
260 public string SafetyIdentifier { get; set; }
261 public ResponseServiceTier? ServiceTier { get; set; }
262 public bool? StoredOutputEnabled { get; set; }
263 public bool? StreamingEnabled { get; set; }
264 public float? Temperature { get; set; }
265 public ResponseTextOptions TextOptions { get; set; }
266 public ResponseToolChoice ToolChoice { get; set; }
267 public IList<ResponseTool> Tools { get; }
268 public int? TopLogProbabilityCount { get; set; }
269 public float? TopP { get; set; }
270 public ResponseTruncationMode? TruncationMode { get; set; }
271 public static implicit operator BinaryContent(CreateResponseOptions createResponseOptions);
272 }
273 public class CustomMcpToolCallApprovalPolicy : IJsonModel<CustomMcpToolCallApprovalPolicy>, IPersistableModel<CustomMcpToolCallApprovalPolicy> {
274 [Serialization.JsonIgnore]
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public ref JsonPatch Patch { get; }
277 public McpToolFilter ToolsAlwaysRequiringApproval { get; set; }
278 public McpToolFilter ToolsNeverRequiringApproval { get; set; }
279 }
280 public class FileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel<FileCitationMessageAnnotation>, IPersistableModel<FileCitationMessageAnnotation> {
281 public FileCitationMessageAnnotation(string fileId, int index, string filename);
282 public string FileId { get; set; }
283 public string Filename { get; set; }
284 public int Index { get; set; }
285 }
286 public class FilePathMessageAnnotation : ResponseMessageAnnotation, IJsonModel<FilePathMessageAnnotation>, IPersistableModel<FilePathMessageAnnotation> {
287 public FilePathMessageAnnotation(string fileId, int index);
288 public string FileId { get; set; }
289 public int Index { get; set; }
290 }
291 public class FileSearchCallResponseItem : ResponseItem, IJsonModel<FileSearchCallResponseItem>, IPersistableModel<FileSearchCallResponseItem> {
292 public FileSearchCallResponseItem(IEnumerable<string> queries);
293 public IList<string> Queries { get; }
294 public IList<FileSearchCallResult> Results { get; set; }
295 public FileSearchCallStatus? Status { get; set; }
296 }
297 public class FileSearchCallResult : IJsonModel<FileSearchCallResult>, IPersistableModel<FileSearchCallResult> {
298 public IDictionary<string, BinaryData> Attributes { get; }
299 public string FileId { get; set; }
300 public string Filename { get; set; }
301 [Serialization.JsonIgnore]
302 [EditorBrowsable(EditorBrowsableState.Never)]
303 public ref JsonPatch Patch { get; }
304 public float? Score { get; set; }
305 public string Text { get; set; }
306 }
307 public enum FileSearchCallStatus {
308 InProgress = 0,
309 Searching = 1,
310 Completed = 2,
311 Incomplete = 3,
312 Failed = 4
313 }
314 public class FileSearchTool : ResponseTool, IJsonModel<FileSearchTool>, IPersistableModel<FileSearchTool> {
315 public FileSearchTool(IEnumerable<string> vectorStoreIds);
316 public BinaryData Filters { get; set; }
317 public int? MaxResultCount { get; set; }
318 public FileSearchToolRankingOptions RankingOptions { get; set; }
319 public IList<string> VectorStoreIds { get; }
320 }
321 public readonly partial struct FileSearchToolRanker : IEquatable<FileSearchToolRanker> {
322 public FileSearchToolRanker(string value);
323 public static FileSearchToolRanker Auto { get; }
324 public static FileSearchToolRanker Default20241115 { get; }
325 public readonly bool Equals(FileSearchToolRanker other);
326 [EditorBrowsable(EditorBrowsableState.Never)]
327 public override readonly bool Equals(object obj);
328 [EditorBrowsable(EditorBrowsableState.Never)]
329 public override readonly int GetHashCode();
330 public static bool operator ==(FileSearchToolRanker left, FileSearchToolRanker right);
331 public static implicit operator FileSearchToolRanker(string value);
332 public static implicit operator FileSearchToolRanker?(string value);
333 public static bool operator !=(FileSearchToolRanker left, FileSearchToolRanker right);
334 public override readonly string ToString();
335 }
336 public class FileSearchToolRankingOptions : IJsonModel<FileSearchToolRankingOptions>, IPersistableModel<FileSearchToolRankingOptions> {
337 [Serialization.JsonIgnore]
338 [EditorBrowsable(EditorBrowsableState.Never)]
339 public ref JsonPatch Patch { get; }
340 public FileSearchToolRanker? Ranker { get; set; }
341 public float? ScoreThreshold { get; set; }
342 }
343 public class FunctionCallOutputResponseItem : ResponseItem, IJsonModel<FunctionCallOutputResponseItem>, IPersistableModel<FunctionCallOutputResponseItem> {
344 public FunctionCallOutputResponseItem(string callId, string functionOutput);
345 public string CallId { get; set; }
346 public string FunctionOutput { get; set; }
347 public FunctionCallOutputStatus? Status { get; set; }
348 }
349 public enum FunctionCallOutputStatus {
350 InProgress = 0,
351 Completed = 1,
352 Incomplete = 2
353 }
354 public class FunctionCallResponseItem : ResponseItem, IJsonModel<FunctionCallResponseItem>, IPersistableModel<FunctionCallResponseItem> {
355 public FunctionCallResponseItem(string callId, string functionName, BinaryData functionArguments);
356 public string CallId { get; set; }
357 public BinaryData FunctionArguments { get; set; }
358 public string FunctionName { get; set; }
359 public FunctionCallStatus? Status { get; set; }
360 }
361 public enum FunctionCallStatus {
362 InProgress = 0,
363 Completed = 1,
364 Incomplete = 2
365 }
366 public class FunctionTool : ResponseTool, IJsonModel<FunctionTool>, IPersistableModel<FunctionTool> {
367 public FunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled);
368 public string FunctionDescription { get; set; }
369 public string FunctionName { get; set; }
370 public BinaryData FunctionParameters { get; set; }
371 public bool? StrictModeEnabled { get; set; }
372 }
373 public class GetResponseOptions : IJsonModel<GetResponseOptions>, IPersistableModel<GetResponseOptions> {
374 public GetResponseOptions(string responseId);
375 public IList<IncludedResponseProperty> IncludedProperties { get; set; }
376 public bool? IncludeObfuscation { get; set; }
377 [Serialization.JsonIgnore]
378 [EditorBrowsable(EditorBrowsableState.Never)]
379 public ref JsonPatch Patch { get; }
380 public string ResponseId { get; }
381 public int? StartingAfter { get; set; }
382 public bool? StreamingEnabled { get; set; }
383 }
384 public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable<GlobalMcpToolCallApprovalPolicy> {
385 public GlobalMcpToolCallApprovalPolicy(string value);
386 public static GlobalMcpToolCallApprovalPolicy AlwaysRequireApproval { get; }
387 public static GlobalMcpToolCallApprovalPolicy NeverRequireApproval { get; }
388 public readonly bool Equals(GlobalMcpToolCallApprovalPolicy other);
389 [EditorBrowsable(EditorBrowsableState.Never)]
390 public override readonly bool Equals(object obj);
391 [EditorBrowsable(EditorBrowsableState.Never)]
392 public override readonly int GetHashCode();
393 public static bool operator ==(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right);
394 public static implicit operator GlobalMcpToolCallApprovalPolicy(string value);
395 public static implicit operator GlobalMcpToolCallApprovalPolicy?(string value);
396 public static bool operator !=(GlobalMcpToolCallApprovalPolicy left, GlobalMcpToolCallApprovalPolicy right);
397 public override readonly string ToString();
398 }
399 public class ImageGenerationCallResponseItem : ResponseItem, IJsonModel<ImageGenerationCallResponseItem>, IPersistableModel<ImageGenerationCallResponseItem> {
400 public ImageGenerationCallResponseItem(BinaryData imageResultBytes);
401 public ImageGenerationToolAction? Action { get; set; }
402 public ImageGenerationToolBackground? Background { get; set; }
403 public BinaryData ImageResultBytes { get; set; }
404 public ImageGenerationToolOutputFileFormat? OutputFormat { get; set; }
405 public ImageGenerationToolQuality? Quality { get; set; }
406 public string RevisedPrompt { get; set; }
407 public ImageGenerationToolSize? Size { get; set; }
408 public ImageGenerationCallStatus? Status { get; set; }
409 }
410 public enum ImageGenerationCallStatus {
411 InProgress = 0,
412 Completed = 1,
413 Generating = 2,
414 Failed = 3
415 }
416 public class ImageGenerationTool : ResponseTool, IJsonModel<ImageGenerationTool>, IPersistableModel<ImageGenerationTool> {
417 public ImageGenerationTool();
418 public ImageGenerationToolAction? Action { get; set; }
419 public ImageGenerationToolBackground? Background { get; set; }
420 public ImageGenerationToolInputFidelity? InputFidelity { get; set; }
421 public ImageGenerationToolInputImageMask InputImageMask { get; set; }
422 public string Model { get; set; }
423 public ImageGenerationToolModerationLevel? ModerationLevel { get; set; }
424 public int? OutputCompressionFactor { get; set; }
425 public ImageGenerationToolOutputFileFormat? OutputFileFormat { get; set; }
426 public int? PartialImageCount { get; set; }
427 public ImageGenerationToolQuality? Quality { get; set; }
428 public ImageGenerationToolSize? Size { get; set; }
429 }
430 public readonly partial struct ImageGenerationToolAction : IEquatable<ImageGenerationToolAction> {
431 public ImageGenerationToolAction(string value);
432 public static ImageGenerationToolAction Auto { get; }
433 public static ImageGenerationToolAction Edit { get; }
434 public static ImageGenerationToolAction Generate { get; }
435 public readonly bool Equals(ImageGenerationToolAction other);
436 [EditorBrowsable(EditorBrowsableState.Never)]
437 public override readonly bool Equals(object obj);
438 [EditorBrowsable(EditorBrowsableState.Never)]
439 public override readonly int GetHashCode();
440 public static bool operator ==(ImageGenerationToolAction left, ImageGenerationToolAction right);
441 public static implicit operator ImageGenerationToolAction(string value);
442 public static implicit operator ImageGenerationToolAction?(string value);
443 public static bool operator !=(ImageGenerationToolAction left, ImageGenerationToolAction right);
444 public override readonly string ToString();
445 }
446 public readonly partial struct ImageGenerationToolBackground : IEquatable<ImageGenerationToolBackground> {
447 public ImageGenerationToolBackground(string value);
448 public static ImageGenerationToolBackground Auto { get; }
449 public static ImageGenerationToolBackground Opaque { get; }
450 public static ImageGenerationToolBackground Transparent { get; }
451 public readonly bool Equals(ImageGenerationToolBackground other);
452 [EditorBrowsable(EditorBrowsableState.Never)]
453 public override readonly bool Equals(object obj);
454 [EditorBrowsable(EditorBrowsableState.Never)]
455 public override readonly int GetHashCode();
456 public static bool operator ==(ImageGenerationToolBackground left, ImageGenerationToolBackground right);
457 public static implicit operator ImageGenerationToolBackground(string value);
458 public static implicit operator ImageGenerationToolBackground?(string value);
459 public static bool operator !=(ImageGenerationToolBackground left, ImageGenerationToolBackground right);
460 public override readonly string ToString();
461 }
462 public readonly partial struct ImageGenerationToolInputFidelity : IEquatable<ImageGenerationToolInputFidelity> {
463 public ImageGenerationToolInputFidelity(string value);
464 public static ImageGenerationToolInputFidelity High { get; }
465 public static ImageGenerationToolInputFidelity Low { get; }
466 public readonly bool Equals(ImageGenerationToolInputFidelity other);
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public override readonly bool Equals(object obj);
469 [EditorBrowsable(EditorBrowsableState.Never)]
470 public override readonly int GetHashCode();
471 public static bool operator ==(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right);
472 public static implicit operator ImageGenerationToolInputFidelity(string value);
473 public static implicit operator ImageGenerationToolInputFidelity?(string value);
474 public static bool operator !=(ImageGenerationToolInputFidelity left, ImageGenerationToolInputFidelity right);
475 public override readonly string ToString();
476 }
477 public class ImageGenerationToolInputImageMask : IJsonModel<ImageGenerationToolInputImageMask>, IPersistableModel<ImageGenerationToolInputImageMask> {
478 public ImageGenerationToolInputImageMask(BinaryData imageBytes);
479 public ImageGenerationToolInputImageMask(string fileId);
480 public ImageGenerationToolInputImageMask(Uri imageUri);
481 public string FileId { get; set; }
482 public string ImageUri { get; set; }
483 [Serialization.JsonIgnore]
484 [EditorBrowsable(EditorBrowsableState.Never)]
485 public ref JsonPatch Patch { get; }
486 }
487 public readonly partial struct ImageGenerationToolModerationLevel : IEquatable<ImageGenerationToolModerationLevel> {
488 public ImageGenerationToolModerationLevel(string value);
489 public static ImageGenerationToolModerationLevel Auto { get; }
490 public static ImageGenerationToolModerationLevel Low { get; }
491 public readonly bool Equals(ImageGenerationToolModerationLevel other);
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public override readonly bool Equals(object obj);
494 [EditorBrowsable(EditorBrowsableState.Never)]
495 public override readonly int GetHashCode();
496 public static bool operator ==(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right);
497 public static implicit operator ImageGenerationToolModerationLevel(string value);
498 public static implicit operator ImageGenerationToolModerationLevel?(string value);
499 public static bool operator !=(ImageGenerationToolModerationLevel left, ImageGenerationToolModerationLevel right);
500 public override readonly string ToString();
501 }
502 public readonly partial struct ImageGenerationToolOutputFileFormat : IEquatable<ImageGenerationToolOutputFileFormat> {
503 public ImageGenerationToolOutputFileFormat(string value);
504 public static ImageGenerationToolOutputFileFormat Jpeg { get; }
505 public static ImageGenerationToolOutputFileFormat Png { get; }
506 public static ImageGenerationToolOutputFileFormat Webp { get; }
507 public readonly bool Equals(ImageGenerationToolOutputFileFormat other);
508 [EditorBrowsable(EditorBrowsableState.Never)]
509 public override readonly bool Equals(object obj);
510 [EditorBrowsable(EditorBrowsableState.Never)]
511 public override readonly int GetHashCode();
512 public static bool operator ==(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right);
513 public static implicit operator ImageGenerationToolOutputFileFormat(string value);
514 public static implicit operator ImageGenerationToolOutputFileFormat?(string value);
515 public static bool operator !=(ImageGenerationToolOutputFileFormat left, ImageGenerationToolOutputFileFormat right);
516 public override readonly string ToString();
517 }
518 public readonly partial struct ImageGenerationToolQuality : IEquatable<ImageGenerationToolQuality> {
519 public ImageGenerationToolQuality(string value);
520 public static ImageGenerationToolQuality Auto { get; }
521 public static ImageGenerationToolQuality High { get; }
522 public static ImageGenerationToolQuality Low { get; }
523 public static ImageGenerationToolQuality Medium { get; }
524 public readonly bool Equals(ImageGenerationToolQuality other);
525 [EditorBrowsable(EditorBrowsableState.Never)]
526 public override readonly bool Equals(object obj);
527 [EditorBrowsable(EditorBrowsableState.Never)]
528 public override readonly int GetHashCode();
529 public static bool operator ==(ImageGenerationToolQuality left, ImageGenerationToolQuality right);
530 public static implicit operator ImageGenerationToolQuality(string value);
531 public static implicit operator ImageGenerationToolQuality?(string value);
532 public static bool operator !=(ImageGenerationToolQuality left, ImageGenerationToolQuality right);
533 public override readonly string ToString();
534 }
535 public readonly partial struct ImageGenerationToolSize : IEquatable<ImageGenerationToolSize> {
536 public static readonly ImageGenerationToolSize W1024xH1024;
537 public static readonly ImageGenerationToolSize W1024xH1536;
538 public static readonly ImageGenerationToolSize W1536xH1024;
539 public ImageGenerationToolSize(int width, int height);
540 public static ImageGenerationToolSize Auto { get; }
541 public readonly bool Equals(ImageGenerationToolSize other);
542 [EditorBrowsable(EditorBrowsableState.Never)]
543 public override readonly bool Equals(object obj);
544 [EditorBrowsable(EditorBrowsableState.Never)]
545 public override readonly int GetHashCode();
546 public static bool operator ==(ImageGenerationToolSize left, ImageGenerationToolSize right);
547 public static bool operator !=(ImageGenerationToolSize left, ImageGenerationToolSize right);
548 public override readonly string ToString();
549 }
550 public readonly partial struct IncludedResponseProperty : IEquatable<IncludedResponseProperty> {
551 public IncludedResponseProperty(string value);
552 public static IncludedResponseProperty CodeInterpreterCallOutputs { get; }
553 public static IncludedResponseProperty ComputerCallOutputImageUri { get; }
554 public static IncludedResponseProperty FileSearchCallResults { get; }
555 public static IncludedResponseProperty MessageInputImageUri { get; }
556 public static IncludedResponseProperty MessageOutputTextLogProbabilities { get; }
557 public static IncludedResponseProperty ReasoningEncryptedContent { get; }
558 public static IncludedResponseProperty WebSearchCallActionSources { get; }
559 public static IncludedResponseProperty WebSearchCallResults { get; }
560 public readonly bool Equals(IncludedResponseProperty other);
561 [EditorBrowsable(EditorBrowsableState.Never)]
562 public override readonly bool Equals(object obj);
563 [EditorBrowsable(EditorBrowsableState.Never)]
564 public override readonly int GetHashCode();
565 public static bool operator ==(IncludedResponseProperty left, IncludedResponseProperty right);
566 public static implicit operator IncludedResponseProperty(string value);
567 public static implicit operator IncludedResponseProperty?(string value);
568 public static bool operator !=(IncludedResponseProperty left, IncludedResponseProperty right);
569 public override readonly string ToString();
570 }
571 public class McpTool : ResponseTool, IJsonModel<McpTool>, IPersistableModel<McpTool> {
572 public McpTool(string serverLabel, McpToolConnectorId connectorId);
573 public McpTool(string serverLabel, Uri serverUri);
574 public McpToolFilter AllowedTools { get; set; }
575 public string AuthorizationToken { get; set; }
576 public McpToolConnectorId? ConnectorId { get; set; }
577 public IDictionary<string, string> Headers { get; set; }
578 public string ServerDescription { get; set; }
579 public string ServerLabel { get; set; }
580 public Uri ServerUri { get; set; }
581 public McpToolCallApprovalPolicy ToolCallApprovalPolicy { get; set; }
582 }
583 public class McpToolCallApprovalPolicy : IJsonModel<McpToolCallApprovalPolicy>, IPersistableModel<McpToolCallApprovalPolicy> {
584 public McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy);
585 public McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy);
586 public CustomMcpToolCallApprovalPolicy CustomPolicy { get; }
587 public GlobalMcpToolCallApprovalPolicy? GlobalPolicy { get; }
588 [Serialization.JsonIgnore]
589 [EditorBrowsable(EditorBrowsableState.Never)]
590 public ref JsonPatch Patch { get; }
591 public static implicit operator McpToolCallApprovalPolicy(CustomMcpToolCallApprovalPolicy customPolicy);
592 public static implicit operator McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy globalPolicy);
593 }
594 public class McpToolCallApprovalRequestItem : ResponseItem, IJsonModel<McpToolCallApprovalRequestItem>, IPersistableModel<McpToolCallApprovalRequestItem> {
595 public McpToolCallApprovalRequestItem(string id, string serverLabel, string toolName, BinaryData toolArguments);
596 public string ServerLabel { get; set; }
597 public BinaryData ToolArguments { get; set; }
598 public string ToolName { get; set; }
599 }
600 public class McpToolCallApprovalResponseItem : ResponseItem, IJsonModel<McpToolCallApprovalResponseItem>, IPersistableModel<McpToolCallApprovalResponseItem> {
601 public McpToolCallApprovalResponseItem(string approvalRequestId, bool approved);
602 public string ApprovalRequestId { get; set; }
603 public bool Approved { get; set; }
604 public string Reason { get; set; }
605 }
606 public class McpToolCallItem : ResponseItem, IJsonModel<McpToolCallItem>, IPersistableModel<McpToolCallItem> {
607 public McpToolCallItem(string serverLabel, string toolName, BinaryData toolArguments);
608 public BinaryData Error { get; set; }
609 public string ServerLabel { get; set; }
610 public BinaryData ToolArguments { get; set; }
611 public string ToolName { get; set; }
612 public string ToolOutput { get; set; }
613 }
614 public readonly partial struct McpToolConnectorId : IEquatable<McpToolConnectorId> {
615 public McpToolConnectorId(string value);
616 public static McpToolConnectorId Dropbox { get; }
617 public static McpToolConnectorId Gmail { get; }
618 public static McpToolConnectorId GoogleCalendar { get; }
619 public static McpToolConnectorId GoogleDrive { get; }
620 public static McpToolConnectorId MicrosoftTeams { get; }
621 public static McpToolConnectorId OutlookCalendar { get; }
622 public static McpToolConnectorId OutlookEmail { get; }
623 public static McpToolConnectorId SharePoint { get; }
624 public readonly bool Equals(McpToolConnectorId other);
625 [EditorBrowsable(EditorBrowsableState.Never)]
626 public override readonly bool Equals(object obj);
627 [EditorBrowsable(EditorBrowsableState.Never)]
628 public override readonly int GetHashCode();
629 public static bool operator ==(McpToolConnectorId left, McpToolConnectorId right);
630 public static implicit operator McpToolConnectorId(string value);
631 public static implicit operator McpToolConnectorId?(string value);
632 public static bool operator !=(McpToolConnectorId left, McpToolConnectorId right);
633 public override readonly string ToString();
634 }
635 public class McpToolDefinition : IJsonModel<McpToolDefinition>, IPersistableModel<McpToolDefinition> {
636 public McpToolDefinition(string name, BinaryData inputSchema);
637 public BinaryData Annotations { get; set; }
638 public string Description { get; set; }
639 public BinaryData InputSchema { get; set; }
640 public string Name { get; set; }
641 [Serialization.JsonIgnore]
642 [EditorBrowsable(EditorBrowsableState.Never)]
643 public ref JsonPatch Patch { get; }
644 }
645 public class McpToolDefinitionListItem : ResponseItem, IJsonModel<McpToolDefinitionListItem>, IPersistableModel<McpToolDefinitionListItem> {
646 public McpToolDefinitionListItem(string serverLabel, IEnumerable<McpToolDefinition> toolDefinitions);
647 public BinaryData Error { get; set; }
648 public string ServerLabel { get; set; }
649 public IList<McpToolDefinition> ToolDefinitions { get; }
650 }
651 public class McpToolFilter : IJsonModel<McpToolFilter>, IPersistableModel<McpToolFilter> {
652 public bool? IsReadOnly { get; set; }
653 [Serialization.JsonIgnore]
654 [EditorBrowsable(EditorBrowsableState.Never)]
655 public ref JsonPatch Patch { get; }
656 public IList<string> ToolNames { get; }
657 }
658 public class MessageResponseItem : ResponseItem, IJsonModel<MessageResponseItem>, IPersistableModel<MessageResponseItem> {
659 public IList<ResponseContentPart> Content { get; }
660 public MessageRole Role { get; }
661 public MessageStatus? Status { get; set; }
662 }
663 public enum MessageRole {
664 Unknown = 0,
665 Assistant = 1,
666 Developer = 2,
667 System = 3,
668 User = 4
669 }
670 public enum MessageStatus {
671 InProgress = 0,
672 Completed = 1,
673 Incomplete = 2
674 }
675 public static class OpenAIHostBuilderExtensions {
676 public static IClientBuilder AddKeyedResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string serviceKey, string sectionName);
677 public static IClientBuilder AddResponsesClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string sectionName);
678 }
679 public class OpenAIResponsesContext : ModelReaderWriterContext {
680 public static OpenAIResponsesContext Default { get; }
681 protected override bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder);
682 }
683 public static class OpenAIResponsesModelFactory {
684 public static CodeInterpreterToolContainer CodeInterpreterToolContainer(string containerId = null, CodeInterpreterToolContainerConfiguration containerConfiguration = null);
685 public static ComputerCallAction ComputerCallAction(string kind = null);
686 public static ComputerCallSafetyCheck ComputerCallSafetyCheck(string id = null, string code = null, string message = null);
687 public static ContainerFileCitationMessageAnnotation ContainerFileCitationMessageAnnotation(string containerId = null, string fileId = null, int startIndex = 0, int endIndex = 0, string filename = null);
688 public static CreateResponseOptions CreateResponseOptions(IDictionary<string, string> metadata = null, float? temperature = null, int? topLogProbabilityCount = null, float? topP = null, string endUserId = null, string safetyIdentifier = null, ResponseServiceTier? serviceTier = null, string previousResponseId = null, string model = null, ResponseReasoningOptions reasoningOptions = null, bool? backgroundModeEnabled = null, int? maxOutputTokenCount = null, int? maxToolCallCount = null, ResponseTextOptions textOptions = null, IEnumerable<ResponseTool> tools = null, ResponseToolChoice toolChoice = null, ResponseTruncationMode? truncationMode = null, IEnumerable<ResponseItem> inputItems = null, IEnumerable<IncludedResponseProperty> includedProperties = null, bool? parallelToolCallsEnabled = null, bool? storedOutputEnabled = null, string instructions = null, bool? streamingEnabled = null, ResponseConversationOptions conversationOptions = null);
689 public static CustomMcpToolCallApprovalPolicy CustomMcpToolCallApprovalPolicy(McpToolFilter toolsAlwaysRequiringApproval = null, McpToolFilter toolsNeverRequiringApproval = null);
690 public static FileCitationMessageAnnotation FileCitationMessageAnnotation(string fileId = null, int index = 0, string filename = null);
691 public static FilePathMessageAnnotation FilePathMessageAnnotation(string fileId = null, int index = 0);
692 public static FileSearchCallResult FileSearchCallResult(string fileId = null, string text = null, string filename = null, IDictionary<string, BinaryData> attributes = null, float? score = null);
693 public static FileSearchToolRankingOptions FileSearchToolRankingOptions(FileSearchToolRanker? ranker = null, float? scoreThreshold = null);
694 public static GetResponseOptions GetResponseOptions(string responseId = null, int? startingAfter = null, bool? includeObfuscation = null, IEnumerable<IncludedResponseProperty> includedProperties = null, bool? streamingEnabled = null);
695 public static ImageGenerationToolInputImageMask ImageGenerationToolInputImageMask(string imageUri = null, string fileId = null);
696 public static McpToolCallApprovalPolicy McpToolCallApprovalPolicy(GlobalMcpToolCallApprovalPolicy? globalPolicy = null, CustomMcpToolCallApprovalPolicy customPolicy = null);
697 public static McpToolDefinition McpToolDefinition(string name = null, string description = null, BinaryData inputSchema = null, BinaryData annotations = null);
698 public static McpToolFilter McpToolFilter(IEnumerable<string> toolNames = null, bool? isReadOnly = null);
699 public static ResponseConversationOptions ResponseConversationOptions(string conversationId = null);
700 public static ResponseDeletionResult ResponseDeletionResult(string responseId = null, bool deleted = false);
701 public static ResponseError ResponseError(ResponseErrorCode code = default, string message = null);
702 public static ResponseIncompleteStatusDetails ResponseIncompleteStatusDetails(ResponseIncompleteStatusReason? reason = null);
703 public static ResponseInputTokenUsageDetails ResponseInputTokenUsageDetails(int cachedTokenCount = 0);
704 public static ResponseItemCollectionOptions ResponseItemCollectionOptions(string responseId = null, string afterId = null, string beforeId = null, int? pageSizeLimit = null, ResponseItemCollectionOrder? order = null);
705 public static ResponseItemCollectionPage ResponseItemCollectionPage(IEnumerable<ResponseItem> data = null, bool hasMore = false, string firstId = null, string lastId = null);
706 public static ResponseMessageAnnotation ResponseMessageAnnotation(string kind = null);
707 public static ResponseOutputTokenUsageDetails ResponseOutputTokenUsageDetails(int reasoningTokenCount = 0);
708 public static ResponseResult ResponseResult(IDictionary<string, string> metadata = null, float? temperature = null, int? topLogProbabilityCount = null, float? topP = null, string endUserId = null, string safetyIdentifier = null, ResponseServiceTier? serviceTier = null, string previousResponseId = null, string model = null, ResponseReasoningOptions reasoningOptions = null, bool? backgroundModeEnabled = null, int? maxOutputTokenCount = null, int? maxToolCallCount = null, ResponseTextOptions textOptions = null, IEnumerable<ResponseTool> tools = null, ResponseToolChoice toolChoice = null, ResponseTruncationMode? truncationMode = null, string id = null, ResponseStatus? status = null, DateTimeOffset createdAt = default, ResponseError error = null, ResponseIncompleteStatusDetails incompleteStatusDetails = null, IEnumerable<ResponseItem> outputItems = null, IEnumerable<ResponseItem> instructions = null, ResponseTokenUsage usage = null, bool parallelToolCallsEnabled = false, ResponseConversationOptions conversationOptions = null);
709 public static ResponseTextOptions ResponseTextOptions(ResponseTextFormat textFormat = null);
710 public static ResponseTokenUsage ResponseTokenUsage(int inputTokenCount = 0, ResponseInputTokenUsageDetails inputTokenDetails = null, int outputTokenCount = 0, ResponseOutputTokenUsageDetails outputTokenDetails = null, int totalTokenCount = 0);
711 public static UriCitationMessageAnnotation UriCitationMessageAnnotation(Uri uri = null, int startIndex = 0, int endIndex = 0, string title = null);
712 public static WebSearchToolFilters WebSearchToolFilters(IEnumerable<string> allowedDomains = null);
713 }
714 public class ReasoningResponseItem : ResponseItem, IJsonModel<ReasoningResponseItem>, IPersistableModel<ReasoningResponseItem> {
715 public ReasoningResponseItem(IEnumerable<ReasoningSummaryPart> summaryParts);
716 public ReasoningResponseItem(string summaryText);
717 public string EncryptedContent { get; set; }
718 public ReasoningStatus? Status { get; set; }
719 public IList<ReasoningSummaryPart> SummaryParts { get; }
720 public string GetSummaryText();
721 }
722 public enum ReasoningStatus {
723 InProgress = 0,
724 Completed = 1,
725 Incomplete = 2
726 }
727 public class ReasoningSummaryPart : IJsonModel<ReasoningSummaryPart>, IPersistableModel<ReasoningSummaryPart> {
728 [Serialization.JsonIgnore]
729 [EditorBrowsable(EditorBrowsableState.Never)]
730 public ref JsonPatch Patch { get; }
731 public static ReasoningSummaryTextPart CreateTextPart(string text);
732 }
733 public class ReasoningSummaryTextPart : ReasoningSummaryPart, IJsonModel<ReasoningSummaryTextPart>, IPersistableModel<ReasoningSummaryTextPart> {
734 public ReasoningSummaryTextPart(string text);
735 public string Text { get; set; }
736 }
737 public class ReferenceResponseItem : ResponseItem, IJsonModel<ReferenceResponseItem>, IPersistableModel<ReferenceResponseItem> {
738 public ReferenceResponseItem(string id);
739 }
740 public class ResponseContentPart : IJsonModel<ResponseContentPart>, IPersistableModel<ResponseContentPart> {
741 public BinaryData InputFileBytes { get; }
742 public string InputFileBytesMediaType { get; }
743 public string InputFileId { get; }
744 public string InputFilename { get; }
745 public Uri InputFileUri { get; }
746 public ResponseImageDetailLevel? InputImageDetailLevel { get; }
747 public string InputImageFileId { get; }
748 public string InputImageUri { get; }
749 public ResponseContentPartKind Kind { get; }
750 public IReadOnlyList<ResponseMessageAnnotation> OutputTextAnnotations { get; }
751 [Serialization.JsonIgnore]
752 [EditorBrowsable(EditorBrowsableState.Never)]
753 public ref JsonPatch Patch { get; }
754 public string Refusal { get; }
755 public string Text { get; }
756 public static ResponseContentPart CreateInputFilePart(BinaryData fileBytes, string fileBytesMediaType, string filename);
757 public static ResponseContentPart CreateInputFilePart(string fileId);
758 public static ResponseContentPart CreateInputFilePart(Uri fileUri);
759 public static ResponseContentPart CreateInputImagePart(BinaryData imageBytes, ResponseImageDetailLevel? imageDetailLevel = null);
760 public static ResponseContentPart CreateInputImagePart(string imageFileId, ResponseImageDetailLevel? imageDetailLevel = null);
761 public static ResponseContentPart CreateInputImagePart(Uri imageUri, ResponseImageDetailLevel? imageDetailLevel = null);
762 public static ResponseContentPart CreateInputTextPart(string text);
763 public static ResponseContentPart CreateOutputTextPart(string text, IEnumerable<ResponseMessageAnnotation> annotations);
764 public static ResponseContentPart CreateRefusalPart(string refusal);
765 }
766 public enum ResponseContentPartKind {
767 Unknown = 0,
768 InputText = 1,
769 InputImage = 2,
770 InputFile = 3,
771 OutputText = 4,
772 Refusal = 5
773 }
774 public class ResponseConversationOptions : IJsonModel<ResponseConversationOptions>, IPersistableModel<ResponseConversationOptions> {
775 public ResponseConversationOptions(string conversationId);
776 public string ConversationId { get; set; }
777 [Serialization.JsonIgnore]
778 [EditorBrowsable(EditorBrowsableState.Never)]
779 public ref JsonPatch Patch { get; }
780 }
781 public class ResponseDeletionResult : IJsonModel<ResponseDeletionResult>, IPersistableModel<ResponseDeletionResult> {
782 public bool Deleted { get; set; }
783 [EditorBrowsable(EditorBrowsableState.Never)]
784 public string Object { get; set; }
785 [Serialization.JsonIgnore]
786 [EditorBrowsable(EditorBrowsableState.Never)]
787 public ref JsonPatch Patch { get; }
788 public string ResponseId { get; set; }
789 public static explicit operator ResponseDeletionResult(ClientResult result);
790 }
791 public class ResponseError : IJsonModel<ResponseError>, IPersistableModel<ResponseError> {
792 public ResponseErrorCode Code { get; }
793 public string Message { get; }
794 [Serialization.JsonIgnore]
795 [EditorBrowsable(EditorBrowsableState.Never)]
796 public ref JsonPatch Patch { get; }
797 }
798 public readonly partial struct ResponseErrorCode : IEquatable<ResponseErrorCode> {
799 public ResponseErrorCode(string value);
800 public static ResponseErrorCode EmptyImageFile { get; }
801 public static ResponseErrorCode FailedToDownloadImage { get; }
802 public static ResponseErrorCode ImageContentPolicyViolation { get; }
803 public static ResponseErrorCode ImageFileNotFound { get; }
804 public static ResponseErrorCode ImageFileTooLarge { get; }
805 public static ResponseErrorCode ImageParseError { get; }
806 public static ResponseErrorCode ImageTooLarge { get; }
807 public static ResponseErrorCode ImageTooSmall { get; }
808 public static ResponseErrorCode InvalidBase64Image { get; }
809 public static ResponseErrorCode InvalidImage { get; }
810 public static ResponseErrorCode InvalidImageFormat { get; }
811 public static ResponseErrorCode InvalidImageMode { get; }
812 public static ResponseErrorCode InvalidImageUrl { get; }
813 public static ResponseErrorCode InvalidPrompt { get; }
814 public static ResponseErrorCode RateLimitExceeded { get; }
815 public static ResponseErrorCode ServerError { get; }
816 public static ResponseErrorCode UnsupportedImageMediaType { get; }
817 public static ResponseErrorCode VectorStoreTimeout { get; }
818 public readonly bool Equals(ResponseErrorCode other);
819 [EditorBrowsable(EditorBrowsableState.Never)]
820 public override readonly bool Equals(object obj);
821 [EditorBrowsable(EditorBrowsableState.Never)]
822 public override readonly int GetHashCode();
823 public static bool operator ==(ResponseErrorCode left, ResponseErrorCode right);
824 public static implicit operator ResponseErrorCode(string value);
825 public static implicit operator ResponseErrorCode?(string value);
826 public static bool operator !=(ResponseErrorCode left, ResponseErrorCode right);
827 public override readonly string ToString();
828 }
829 public readonly partial struct ResponseImageDetailLevel : IEquatable<ResponseImageDetailLevel> {
830 public ResponseImageDetailLevel(string value);
831 public static ResponseImageDetailLevel Auto { get; }
832 public static ResponseImageDetailLevel High { get; }
833 public static ResponseImageDetailLevel Low { get; }
834 public readonly bool Equals(ResponseImageDetailLevel other);
835 [EditorBrowsable(EditorBrowsableState.Never)]
836 public override readonly bool Equals(object obj);
837 [EditorBrowsable(EditorBrowsableState.Never)]
838 public override readonly int GetHashCode();
839 public static bool operator ==(ResponseImageDetailLevel left, ResponseImageDetailLevel right);
840 public static implicit operator ResponseImageDetailLevel(string value);
841 public static implicit operator ResponseImageDetailLevel?(string value);
842 public static bool operator !=(ResponseImageDetailLevel left, ResponseImageDetailLevel right);
843 public override readonly string ToString();
844 }
845 public class ResponseIncompleteStatusDetails : IJsonModel<ResponseIncompleteStatusDetails>, IPersistableModel<ResponseIncompleteStatusDetails> {
846 [Serialization.JsonIgnore]
847 [EditorBrowsable(EditorBrowsableState.Never)]
848 public ref JsonPatch Patch { get; }
849 public ResponseIncompleteStatusReason? Reason { get; }
850 }
851 public readonly partial struct ResponseIncompleteStatusReason : IEquatable<ResponseIncompleteStatusReason> {
852 public ResponseIncompleteStatusReason(string value);
853 public static ResponseIncompleteStatusReason ContentFilter { get; }
854 public static ResponseIncompleteStatusReason MaxOutputTokens { get; }
855 public readonly bool Equals(ResponseIncompleteStatusReason other);
856 [EditorBrowsable(EditorBrowsableState.Never)]
857 public override readonly bool Equals(object obj);
858 [EditorBrowsable(EditorBrowsableState.Never)]
859 public override readonly int GetHashCode();
860 public static bool operator ==(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right);
861 public static implicit operator ResponseIncompleteStatusReason(string value);
862 public static implicit operator ResponseIncompleteStatusReason?(string value);
863 public static bool operator !=(ResponseIncompleteStatusReason left, ResponseIncompleteStatusReason right);
864 public override readonly string ToString();
865 }
866 public class ResponseInputTokenUsageDetails : IJsonModel<ResponseInputTokenUsageDetails>, IPersistableModel<ResponseInputTokenUsageDetails> {
867 public int CachedTokenCount { get; set; }
868 [Serialization.JsonIgnore]
869 [EditorBrowsable(EditorBrowsableState.Never)]
870 public ref JsonPatch Patch { get; }
871 }
872 public class ResponseItem : IJsonModel<ResponseItem>, IPersistableModel<ResponseItem> {
873 public string Id { get; set; }
874 [Serialization.JsonIgnore]
875 [EditorBrowsable(EditorBrowsableState.Never)]
876 public ref JsonPatch Patch { get; }
877 public static ApplyPatchCallItem CreateApplyPatchCallItem(string callId, ApplyPatchOperation operation);
878 public static ApplyPatchCallOutputItem CreateApplyPatchCallOutputItem(string callId, ApplyPatchCallOutputStatus status);
879 public static MessageResponseItem CreateAssistantMessageItem(IEnumerable<ResponseContentPart> contentParts);
880 public static MessageResponseItem CreateAssistantMessageItem(string outputTextContent, IEnumerable<ResponseMessageAnnotation> annotations = null);
881 public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, IEnumerable<ComputerCallSafetyCheck> pendingSafetyChecks);
882 public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output);
883 public static MessageResponseItem CreateDeveloperMessageItem(IEnumerable<ResponseContentPart> contentParts);
884 public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent);
885 public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable<string> queries);
886 public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, BinaryData functionArguments);
887 public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput);
888 public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string id, string serverLabel, string name, BinaryData arguments);
889 public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved);
890 public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, BinaryData arguments);
891 public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, IEnumerable<McpToolDefinition> toolDefinitions);
892 public static ReasoningResponseItem CreateReasoningItem(IEnumerable<ReasoningSummaryPart> summaryParts);
893 public static ReasoningResponseItem CreateReasoningItem(string summaryText);
894 public static ReferenceResponseItem CreateReferenceItem(string id);
895 public static MessageResponseItem CreateSystemMessageItem(IEnumerable<ResponseContentPart> contentParts);
896 public static MessageResponseItem CreateSystemMessageItem(string inputTextContent);
897 public static MessageResponseItem CreateUserMessageItem(IEnumerable<ResponseContentPart> contentParts);
898 public static MessageResponseItem CreateUserMessageItem(string inputTextContent);
899 public static WebSearchCallResponseItem CreateWebSearchCallItem();
900 }
901 public class ResponseItemCollectionOptions : IJsonModel<ResponseItemCollectionOptions>, IPersistableModel<ResponseItemCollectionOptions> {
902 public ResponseItemCollectionOptions(string responseId);
903 public string AfterId { get; set; }
904 public string BeforeId { get; set; }
905 public ResponseItemCollectionOrder? Order { get; set; }
906 public int? PageSizeLimit { get; set; }
907 public string ResponseId { get; }
908 }
909 public readonly partial struct ResponseItemCollectionOrder : IEquatable<ResponseItemCollectionOrder> {
910 public ResponseItemCollectionOrder(string value);
911 public static ResponseItemCollectionOrder Ascending { get; }
912 public static ResponseItemCollectionOrder Descending { get; }
913 public readonly bool Equals(ResponseItemCollectionOrder other);
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public override readonly bool Equals(object obj);
916 [EditorBrowsable(EditorBrowsableState.Never)]
917 public override readonly int GetHashCode();
918 public static bool operator ==(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right);
919 public static implicit operator ResponseItemCollectionOrder(string value);
920 public static implicit operator ResponseItemCollectionOrder?(string value);
921 public static bool operator !=(ResponseItemCollectionOrder left, ResponseItemCollectionOrder right);
922 public override readonly string ToString();
923 }
924 public class ResponseItemCollectionPage : IJsonModel<ResponseItemCollectionPage>, IPersistableModel<ResponseItemCollectionPage> {
925 public IList<ResponseItem> Data { get; }
926 public string FirstId { get; set; }
927 public bool HasMore { get; set; }
928 public string LastId { get; set; }
929 [EditorBrowsable(EditorBrowsableState.Never)]
930 public string Object { get; set; }
931 [Serialization.JsonIgnore]
932 [EditorBrowsable(EditorBrowsableState.Never)]
933 public ref JsonPatch Patch { get; }
934 public static explicit operator ResponseItemCollectionPage(ClientResult result);
935 }
936 public class ResponseMessageAnnotation : IJsonModel<ResponseMessageAnnotation>, IPersistableModel<ResponseMessageAnnotation> {
937 public ResponseMessageAnnotationKind Kind { get; }
938 [Serialization.JsonIgnore]
939 [EditorBrowsable(EditorBrowsableState.Never)]
940 public ref JsonPatch Patch { get; }
941 }
942 public enum ResponseMessageAnnotationKind {
943 FileCitation = 0,
944 UriCitation = 1,
945 FilePath = 2,
946 ContainerFileCitation = 3
947 }
948 public class ResponseOutputTokenUsageDetails : IJsonModel<ResponseOutputTokenUsageDetails>, IPersistableModel<ResponseOutputTokenUsageDetails> {
949 [Serialization.JsonIgnore]
950 [EditorBrowsable(EditorBrowsableState.Never)]
951 public ref JsonPatch Patch { get; }
952 public int ReasoningTokenCount { get; set; }
953 }
954 public readonly partial struct ResponseReasoningEffortLevel : IEquatable<ResponseReasoningEffortLevel> {
955 public ResponseReasoningEffortLevel(string value);
956 public static ResponseReasoningEffortLevel High { get; }
957 public static ResponseReasoningEffortLevel Low { get; }
958 public static ResponseReasoningEffortLevel Medium { get; }
959 public static ResponseReasoningEffortLevel Minimal { get; }
960 public static ResponseReasoningEffortLevel None { get; }
961 public readonly bool Equals(ResponseReasoningEffortLevel other);
962 [EditorBrowsable(EditorBrowsableState.Never)]
963 public override readonly bool Equals(object obj);
964 [EditorBrowsable(EditorBrowsableState.Never)]
965 public override readonly int GetHashCode();
966 public static bool operator ==(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right);
967 public static implicit operator ResponseReasoningEffortLevel(string value);
968 public static implicit operator ResponseReasoningEffortLevel?(string value);
969 public static bool operator !=(ResponseReasoningEffortLevel left, ResponseReasoningEffortLevel right);
970 public override readonly string ToString();
971 }
972 public class ResponseReasoningOptions : IJsonModel<ResponseReasoningOptions>, IPersistableModel<ResponseReasoningOptions> {
973 [Serialization.JsonIgnore]
974 [EditorBrowsable(EditorBrowsableState.Never)]
975 public ref JsonPatch Patch { get; }
976 public ResponseReasoningEffortLevel? ReasoningEffortLevel { get; set; }
977 public ResponseReasoningSummaryVerbosity? ReasoningSummaryVerbosity { get; set; }
978 }
979 public readonly partial struct ResponseReasoningSummaryVerbosity : IEquatable<ResponseReasoningSummaryVerbosity> {
980 public ResponseReasoningSummaryVerbosity(string value);
981 public static ResponseReasoningSummaryVerbosity Auto { get; }
982 public static ResponseReasoningSummaryVerbosity Concise { get; }
983 public static ResponseReasoningSummaryVerbosity Detailed { get; }
984 public readonly bool Equals(ResponseReasoningSummaryVerbosity other);
985 [EditorBrowsable(EditorBrowsableState.Never)]
986 public override readonly bool Equals(object obj);
987 [EditorBrowsable(EditorBrowsableState.Never)]
988 public override readonly int GetHashCode();
989 public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right);
990 public static implicit operator ResponseReasoningSummaryVerbosity(string value);
991 public static implicit operator ResponseReasoningSummaryVerbosity?(string value);
992 public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right);
993 public override readonly string ToString();
994 }
995 public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<ResponseResult> {
996 public bool? BackgroundModeEnabled { get; set; }
997 public ResponseConversationOptions ConversationOptions { get; set; }
998 public DateTimeOffset CreatedAt { get; set; }
999 public string EndUserId { get; set; }
1000 public ResponseError Error { get; set; }
1001 public string Id { get; set; }
1002 public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
1003 public IList<ResponseItem> Instructions { get; }
1004 public int? MaxOutputTokenCount { get; set; }
1005 public int? MaxToolCallCount { get; set; }
1006 public IDictionary<string, string> Metadata { get; }
1007 public string Model { get; set; }
1008 [EditorBrowsable(EditorBrowsableState.Never)]
1009 public string Object { get; set; }
1010 public IList<ResponseItem> OutputItems { get; }
1011 public bool ParallelToolCallsEnabled { get; set; }
1012 [Serialization.JsonIgnore]
1013 [EditorBrowsable(EditorBrowsableState.Never)]
1014 public ref JsonPatch Patch { get; }
1015 public string PreviousResponseId { get; set; }
1016 public ResponseReasoningOptions ReasoningOptions { get; set; }
1017 public string SafetyIdentifier { get; set; }
1018 public ResponseServiceTier? ServiceTier { get; set; }
1019 public ResponseStatus? Status { get; set; }
1020 public float? Temperature { get; set; }
1021 public ResponseTextOptions TextOptions { get; set; }
1022 public ResponseToolChoice ToolChoice { get; set; }
1023 public IList<ResponseTool> Tools { get; }
1024 public int? TopLogProbabilityCount { get; set; }
1025 public float? TopP { get; set; }
1026 public ResponseTruncationMode? TruncationMode { get; set; }
1027 public ResponseTokenUsage Usage { get; set; }
1028 public string GetOutputText();
1029 public static explicit operator ResponseResult(ClientResult result);
1030 }
1031 public class ResponsesClient {
1032 protected ResponsesClient();
1033 public ResponsesClient(ResponsesClientSettings settings);
1034 public ResponsesClient(ApiKeyCredential credential, ResponsesClientOptions options);
1035 public ResponsesClient(ApiKeyCredential credential);
1036 public ResponsesClient(AuthenticationPolicy authenticationPolicy, ResponsesClientOptions options);
1037 public ResponsesClient(AuthenticationPolicy authenticationPolicy);
1038 protected internal ResponsesClient(ClientPipeline pipeline, ResponsesClientOptions options);
1039 public ResponsesClient(string apiKey);
1040 public virtual Uri Endpoint { get; }
1041 public ClientPipeline Pipeline { get; }
1042 public virtual ClientResult CancelResponse(string responseId, RequestOptions options);
1043 public virtual ClientResult<ResponseResult> CancelResponse(string responseId, CancellationToken cancellationToken = default);
1044 public virtual Task<ClientResult> CancelResponseAsync(string responseId, RequestOptions options);
1045 public virtual Task<ClientResult<ResponseResult>> CancelResponseAsync(string responseId, CancellationToken cancellationToken = default);
1046 public virtual ClientResult CompactResponse(BinaryContent content, string contentType, RequestOptions options = null);
1047 public virtual Task<ClientResult> CompactResponseAsync(BinaryContent content, string contentType, RequestOptions options = null);
1048 public virtual ClientResult<ResponseResult> CreateResponse(CreateResponseOptions options, CancellationToken cancellationToken = default);
1049 public virtual ClientResult CreateResponse(BinaryContent content, RequestOptions options = null);
1050 public virtual ClientResult<ResponseResult> CreateResponse(string model, IEnumerable<ResponseItem> inputItems, string previousResponseId = null, CancellationToken cancellationToken = default);
1051 public virtual ClientResult<ResponseResult> CreateResponse(string model, string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default);
1052 public virtual Task<ClientResult<ResponseResult>> CreateResponseAsync(CreateResponseOptions options, CancellationToken cancellationToken = default);
1053 public virtual Task<ClientResult> CreateResponseAsync(BinaryContent content, RequestOptions options = null);
1054 public virtual Task<ClientResult<ResponseResult>> CreateResponseAsync(string model, IEnumerable<ResponseItem> inputItems, string previousResponseId = null, CancellationToken cancellationToken = default);
1055 public virtual Task<ClientResult<ResponseResult>> CreateResponseAsync(string model, string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default);
1056 public virtual CollectionResult<StreamingResponseUpdate> CreateResponseStreaming(CreateResponseOptions options, CancellationToken cancellationToken = default);
1057 public virtual CollectionResult<StreamingResponseUpdate> CreateResponseStreaming(string model, IEnumerable<ResponseItem> inputItems, string previousResponseId = null, CancellationToken cancellationToken = default);
1058 public virtual CollectionResult<StreamingResponseUpdate> CreateResponseStreaming(string model, string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default);
1059 public virtual AsyncCollectionResult<StreamingResponseUpdate> CreateResponseStreamingAsync(CreateResponseOptions options, CancellationToken cancellationToken = default);
1060 public virtual AsyncCollectionResult<StreamingResponseUpdate> CreateResponseStreamingAsync(string model, IEnumerable<ResponseItem> inputItems, string previousResponseId = null, CancellationToken cancellationToken = default);
1061 public virtual AsyncCollectionResult<StreamingResponseUpdate> CreateResponseStreamingAsync(string model, string userInputText, string previousResponseId = null, CancellationToken cancellationToken = default);
1062 public virtual ClientResult DeleteResponse(string responseId, RequestOptions options);
1063 public virtual ClientResult<ResponseDeletionResult> DeleteResponse(string responseId, CancellationToken cancellationToken = default);
1064 public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
1065 public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
1066 public virtual ClientResult GetInputTokenCount(BinaryContent content, string contentType, RequestOptions options = null);
1067 public virtual Task<ClientResult> GetInputTokenCountAsync(BinaryContent content, string contentType, RequestOptions options = null);
1068 public virtual ClientResult<ResponseResult> GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default);
1069 public virtual ClientResult GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
1070 public virtual ClientResult<ResponseResult> GetResponse(string responseId, CancellationToken cancellationToken = default);
1071 public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
1072 public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
1073 public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(string responseId, CancellationToken cancellationToken = default);
1074 public virtual ClientResult<ResponseItemCollectionPage> GetResponseInputItemCollectionPage(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default);
1075 public virtual ClientResult GetResponseInputItemCollectionPage(string responseId, int? limit, string order, string after, string before, RequestOptions options);
1076 public virtual Task<ClientResult<ResponseItemCollectionPage>> GetResponseInputItemCollectionPageAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default);
1077 public virtual Task<ClientResult> GetResponseInputItemCollectionPageAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
1078 public virtual CollectionResult<ResponseItem> GetResponseInputItems(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default);
1079 public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, CancellationToken cancellationToken = default);
1080 public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(ResponseItemCollectionOptions options, CancellationToken cancellationToken = default);
1081 public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, CancellationToken cancellationToken = default);
1082 public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default);
1083 public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, CancellationToken cancellationToken = default);
1084 public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
1085 public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, CancellationToken cancellationToken = default);
1086 }
1087 public class ResponsesClientOptions : ClientPipelineOptions {
1088 public Uri Endpoint { get; set; }
1089 public string OrganizationId { get; set; }
1090 public string ProjectId { get; set; }
1091 public string UserAgentApplicationId { get; set; }
1092 }
1093 public sealed class ResponsesClientSettings : ClientSettings {
1094 public ResponsesClientOptions Options { get; set; }
1095 protected override void BindCore(Microsoft.Extensions.Configuration.IConfigurationSection section);
1096 }
1097 public readonly partial struct ResponseServiceTier : IEquatable<ResponseServiceTier> {
1098 public ResponseServiceTier(string value);
1099 public static ResponseServiceTier Auto { get; }
1100 public static ResponseServiceTier Default { get; }
1101 public static ResponseServiceTier Flex { get; }
1102 public static ResponseServiceTier Scale { get; }
1103 public readonly bool Equals(ResponseServiceTier other);
1104 [EditorBrowsable(EditorBrowsableState.Never)]
1105 public override readonly bool Equals(object obj);
1106 [EditorBrowsable(EditorBrowsableState.Never)]
1107 public override readonly int GetHashCode();
1108 public static bool operator ==(ResponseServiceTier left, ResponseServiceTier right);
1109 public static implicit operator ResponseServiceTier(string value);
1110 public static implicit operator ResponseServiceTier?(string value);
1111 public static bool operator !=(ResponseServiceTier left, ResponseServiceTier right);
1112 public override readonly string ToString();
1113 }
1114 public enum ResponseStatus {
1115 InProgress = 0,
1116 Completed = 1,
1117 Cancelled = 2,
1118 Queued = 3,
1119 Incomplete = 4,
1120 Failed = 5
1121 }
1122 public class ResponseTextFormat : IJsonModel<ResponseTextFormat>, IPersistableModel<ResponseTextFormat> {
1123 public ResponseTextFormatKind Kind { get; set; }
1124 [Serialization.JsonIgnore]
1125 [EditorBrowsable(EditorBrowsableState.Never)]
1126 public ref JsonPatch Patch { get; }
1127 public static ResponseTextFormat CreateJsonObjectFormat();
1128 public static ResponseTextFormat CreateJsonSchemaFormat(string jsonSchemaFormatName, BinaryData jsonSchema, string jsonSchemaFormatDescription = null, bool? jsonSchemaIsStrict = null);
1129 public static ResponseTextFormat CreateTextFormat();
1130 }
1131 public enum ResponseTextFormatKind {
1132 Unknown = 0,
1133 Text = 1,
1134 JsonObject = 2,
1135 JsonSchema = 3
1136 }
1137 public class ResponseTextOptions : IJsonModel<ResponseTextOptions>, IPersistableModel<ResponseTextOptions> {
1138 [Serialization.JsonIgnore]
1139 [EditorBrowsable(EditorBrowsableState.Never)]
1140 public ref JsonPatch Patch { get; }
1141 public ResponseTextFormat TextFormat { get; set; }
1142 }
1143 public class ResponseTokenUsage : IJsonModel<ResponseTokenUsage>, IPersistableModel<ResponseTokenUsage> {
1144 public int InputTokenCount { get; set; }
1145 public ResponseInputTokenUsageDetails InputTokenDetails { get; set; }
1146 public int OutputTokenCount { get; set; }
1147 public ResponseOutputTokenUsageDetails OutputTokenDetails { get; set; }
1148 [Serialization.JsonIgnore]
1149 [EditorBrowsable(EditorBrowsableState.Never)]
1150 public ref JsonPatch Patch { get; }
1151 public int TotalTokenCount { get; set; }
1152 }
1153 public class ResponseTool : IJsonModel<ResponseTool>, IPersistableModel<ResponseTool> {
1154 [Serialization.JsonIgnore]
1155 [EditorBrowsable(EditorBrowsableState.Never)]
1156 public ref JsonPatch Patch { get; }
1157 public static ApplyPatchTool CreateApplyPatchTool();
1158 public static CodeInterpreterTool CreateCodeInterpreterTool(CodeInterpreterToolContainer container);
1159 public static ComputerTool CreateComputerTool(ComputerToolEnvironment environment, int displayWidth, int displayHeight);
1160 public static FileSearchTool CreateFileSearchTool(IEnumerable<string> vectorStoreIds, int? maxResultCount = null, FileSearchToolRankingOptions rankingOptions = null, BinaryData filters = null);
1161 public static FunctionTool CreateFunctionTool(string functionName, BinaryData functionParameters, bool? strictModeEnabled, string functionDescription = null);
1162 public static ImageGenerationTool CreateImageGenerationTool(string model, ImageGenerationToolQuality? quality = null, ImageGenerationToolSize? size = null, ImageGenerationToolOutputFileFormat? outputFileFormat = null, int? outputCompressionFactor = null, ImageGenerationToolModerationLevel? moderationLevel = null, ImageGenerationToolBackground? background = null, ImageGenerationToolInputFidelity? inputFidelity = null, ImageGenerationToolInputImageMask inputImageMask = null, int? partialImageCount = null, ImageGenerationToolAction? action = null);
1163 public static McpTool CreateMcpTool(string serverLabel, McpToolConnectorId connectorId, string authorizationToken = null, string serverDescription = null, IDictionary<string, string> headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null);
1164 public static McpTool CreateMcpTool(string serverLabel, Uri serverUri, string authorizationToken = null, string serverDescription = null, IDictionary<string, string> headers = null, McpToolFilter allowedTools = null, McpToolCallApprovalPolicy toolCallApprovalPolicy = null);
1165 public static WebSearchPreviewTool CreateWebSearchPreviewTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null);
1166 public static WebSearchTool CreateWebSearchTool(WebSearchToolLocation userLocation = null, WebSearchToolContextSize? searchContextSize = null, WebSearchToolFilters filters = null);
1167 }
1168 public class ResponseToolChoice : IJsonModel<ResponseToolChoice>, IPersistableModel<ResponseToolChoice> {
1169 public string FunctionName { get; }
1170 public ResponseToolChoiceKind Kind { get; }
1171 public static ResponseToolChoice CreateAutoChoice();
1172 public static ResponseToolChoice CreateComputerChoice();
1173 public static ResponseToolChoice CreateFileSearchChoice();
1174 public static ResponseToolChoice CreateFunctionChoice(string functionName);
1175 public static ResponseToolChoice CreateNoneChoice();
1176 public static ResponseToolChoice CreateRequiredChoice();
1177 public static ResponseToolChoice CreateWebSearchChoice();
1178 }
1179 public enum ResponseToolChoiceKind {
1180 Unknown = 0,
1181 Auto = 1,
1182 None = 2,
1183 Required = 3,
1184 Function = 4,
1185 FileSearch = 5,
1186 WebSearch = 6,
1187 Computer = 7
1188 }
1189 public readonly partial struct ResponseTruncationMode : IEquatable<ResponseTruncationMode> {
1190 public ResponseTruncationMode(string value);
1191 public static ResponseTruncationMode Auto { get; }
1192 public static ResponseTruncationMode Disabled { get; }
1193 public readonly bool Equals(ResponseTruncationMode other);
1194 [EditorBrowsable(EditorBrowsableState.Never)]
1195 public override readonly bool Equals(object obj);
1196 [EditorBrowsable(EditorBrowsableState.Never)]
1197 public override readonly int GetHashCode();
1198 public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right);
1199 public static implicit operator ResponseTruncationMode(string value);
1200 public static implicit operator ResponseTruncationMode?(string value);
1201 public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right);
1202 public override readonly string ToString();
1203 }
1204 public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallCodeDeltaUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallCodeDeltaUpdate> {
1205 public StreamingResponseCodeInterpreterCallCodeDeltaUpdate();
1206 public string Delta { get; set; }
1207 public string ItemId { get; set; }
1208 public int OutputIndex { get; set; }
1209 }
1210 public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallCodeDoneUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallCodeDoneUpdate> {
1211 public StreamingResponseCodeInterpreterCallCodeDoneUpdate();
1212 public string Code { get; set; }
1213 public string ItemId { get; set; }
1214 public int OutputIndex { get; set; }
1215 }
1216 public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallCompletedUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallCompletedUpdate> {
1217 public StreamingResponseCodeInterpreterCallCompletedUpdate();
1218 public string ItemId { get; set; }
1219 public int OutputIndex { get; set; }
1220 }
1221 public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallInProgressUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallInProgressUpdate> {
1222 public StreamingResponseCodeInterpreterCallInProgressUpdate();
1223 public string ItemId { get; set; }
1224 public int OutputIndex { get; set; }
1225 }
1226 public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallInterpretingUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallInterpretingUpdate> {
1227 public StreamingResponseCodeInterpreterCallInterpretingUpdate();
1228 public string ItemId { get; set; }
1229 public int OutputIndex { get; set; }
1230 }
1231 public class StreamingResponseCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCompletedUpdate>, IPersistableModel<StreamingResponseCompletedUpdate> {
1232 public StreamingResponseCompletedUpdate();
1233 public ResponseResult Response { get; set; }
1234 }
1235 public class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseContentPartAddedUpdate>, IPersistableModel<StreamingResponseContentPartAddedUpdate> {
1236 public StreamingResponseContentPartAddedUpdate();
1237 public int ContentIndex { get; set; }
1238 public string ItemId { get; set; }
1239 public int OutputIndex { get; set; }
1240 public ResponseContentPart Part { get; set; }
1241 }
1242 public class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseContentPartDoneUpdate>, IPersistableModel<StreamingResponseContentPartDoneUpdate> {
1243 public StreamingResponseContentPartDoneUpdate();
1244 public int ContentIndex { get; set; }
1245 public string ItemId { get; set; }
1246 public int OutputIndex { get; set; }
1247 public ResponseContentPart Part { get; set; }
1248 }
1249 public class StreamingResponseCreatedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCreatedUpdate>, IPersistableModel<StreamingResponseCreatedUpdate> {
1250 public StreamingResponseCreatedUpdate();
1251 public ResponseResult Response { get; set; }
1252 }
1253 public class StreamingResponseErrorUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseErrorUpdate>, IPersistableModel<StreamingResponseErrorUpdate> {
1254 public StreamingResponseErrorUpdate();
1255 public string Code { get; set; }
1256 public string Message { get; set; }
1257 public string Param { get; set; }
1258 }
1259 public class StreamingResponseFailedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFailedUpdate>, IPersistableModel<StreamingResponseFailedUpdate> {
1260 public StreamingResponseFailedUpdate();
1261 public ResponseResult Response { get; set; }
1262 }
1263 public class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFileSearchCallCompletedUpdate>, IPersistableModel<StreamingResponseFileSearchCallCompletedUpdate> {
1264 public StreamingResponseFileSearchCallCompletedUpdate();
1265 public string ItemId { get; set; }
1266 public int OutputIndex { get; set; }
1267 }
1268 public class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFileSearchCallInProgressUpdate>, IPersistableModel<StreamingResponseFileSearchCallInProgressUpdate> {
1269 public StreamingResponseFileSearchCallInProgressUpdate();
1270 public string ItemId { get; set; }
1271 public int OutputIndex { get; set; }
1272 }
1273 public class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFileSearchCallSearchingUpdate>, IPersistableModel<StreamingResponseFileSearchCallSearchingUpdate> {
1274 public StreamingResponseFileSearchCallSearchingUpdate();
1275 public string ItemId { get; set; }
1276 public int OutputIndex { get; set; }
1277 }
1278 public class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFunctionCallArgumentsDeltaUpdate>, IPersistableModel<StreamingResponseFunctionCallArgumentsDeltaUpdate> {
1279 public StreamingResponseFunctionCallArgumentsDeltaUpdate();
1280 public BinaryData Delta { get; set; }
1281 public string ItemId { get; set; }
1282 public int OutputIndex { get; set; }
1283 }
1284 public class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseFunctionCallArgumentsDoneUpdate>, IPersistableModel<StreamingResponseFunctionCallArgumentsDoneUpdate> {
1285 public StreamingResponseFunctionCallArgumentsDoneUpdate();
1286 public BinaryData FunctionArguments { get; set; }
1287 public string ItemId { get; set; }
1288 public int OutputIndex { get; set; }
1289 }
1290 public class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseImageGenerationCallCompletedUpdate>, IPersistableModel<StreamingResponseImageGenerationCallCompletedUpdate> {
1291 public StreamingResponseImageGenerationCallCompletedUpdate();
1292 public string ItemId { get; set; }
1293 public int OutputIndex { get; set; }
1294 }
1295 public class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseImageGenerationCallGeneratingUpdate>, IPersistableModel<StreamingResponseImageGenerationCallGeneratingUpdate> {
1296 public StreamingResponseImageGenerationCallGeneratingUpdate();
1297 public string ItemId { get; set; }
1298 public int OutputIndex { get; set; }
1299 }
1300 public class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseImageGenerationCallInProgressUpdate>, IPersistableModel<StreamingResponseImageGenerationCallInProgressUpdate> {
1301 public StreamingResponseImageGenerationCallInProgressUpdate();
1302 public string ItemId { get; set; }
1303 public int OutputIndex { get; set; }
1304 }
1305 public class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseImageGenerationCallPartialImageUpdate>, IPersistableModel<StreamingResponseImageGenerationCallPartialImageUpdate> {
1306 public StreamingResponseImageGenerationCallPartialImageUpdate();
1307 public string ItemId { get; set; }
1308 public int OutputIndex { get; set; }
1309 public BinaryData PartialImageBytes { get; set; }
1310 public int PartialImageIndex { get; set; }
1311 }
1312 public class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseIncompleteUpdate>, IPersistableModel<StreamingResponseIncompleteUpdate> {
1313 public StreamingResponseIncompleteUpdate();
1314 public ResponseResult Response { get; set; }
1315 }
1316 public class StreamingResponseInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseInProgressUpdate>, IPersistableModel<StreamingResponseInProgressUpdate> {
1317 public StreamingResponseInProgressUpdate();
1318 public ResponseResult Response { get; set; }
1319 }
1320 public class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpCallArgumentsDeltaUpdate>, IPersistableModel<StreamingResponseMcpCallArgumentsDeltaUpdate> {
1321 public StreamingResponseMcpCallArgumentsDeltaUpdate();
1322 public BinaryData Delta { get; set; }
1323 public string ItemId { get; set; }
1324 public int OutputIndex { get; set; }
1325 }
1326 public class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpCallArgumentsDoneUpdate>, IPersistableModel<StreamingResponseMcpCallArgumentsDoneUpdate> {
1327 public StreamingResponseMcpCallArgumentsDoneUpdate();
1328 public string ItemId { get; set; }
1329 public int OutputIndex { get; set; }
1330 public BinaryData ToolArguments { get; set; }
1331 }
1332 public class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpCallCompletedUpdate>, IPersistableModel<StreamingResponseMcpCallCompletedUpdate> {
1333 public StreamingResponseMcpCallCompletedUpdate();
1334 public string ItemId { get; set; }
1335 public int OutputIndex { get; set; }
1336 }
1337 public class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpCallFailedUpdate>, IPersistableModel<StreamingResponseMcpCallFailedUpdate> {
1338 public StreamingResponseMcpCallFailedUpdate();
1339 public string ItemId { get; set; }
1340 public int OutputIndex { get; set; }
1341 }
1342 public class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpCallInProgressUpdate>, IPersistableModel<StreamingResponseMcpCallInProgressUpdate> {
1343 public StreamingResponseMcpCallInProgressUpdate();
1344 public string ItemId { get; set; }
1345 public int OutputIndex { get; set; }
1346 }
1347 public class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpListToolsCompletedUpdate>, IPersistableModel<StreamingResponseMcpListToolsCompletedUpdate> {
1348 public StreamingResponseMcpListToolsCompletedUpdate();
1349 public string ItemId { get; set; }
1350 public int OutputIndex { get; set; }
1351 }
1352 public class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpListToolsFailedUpdate>, IPersistableModel<StreamingResponseMcpListToolsFailedUpdate> {
1353 public StreamingResponseMcpListToolsFailedUpdate();
1354 public string ItemId { get; set; }
1355 public int OutputIndex { get; set; }
1356 }
1357 public class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseMcpListToolsInProgressUpdate>, IPersistableModel<StreamingResponseMcpListToolsInProgressUpdate> {
1358 public StreamingResponseMcpListToolsInProgressUpdate();
1359 public string ItemId { get; set; }
1360 public int OutputIndex { get; set; }
1361 }
1362 public class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseOutputItemAddedUpdate>, IPersistableModel<StreamingResponseOutputItemAddedUpdate> {
1363 public StreamingResponseOutputItemAddedUpdate();
1364 public ResponseItem Item { get; set; }
1365 public int OutputIndex { get; set; }
1366 }
1367 public class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseOutputItemDoneUpdate>, IPersistableModel<StreamingResponseOutputItemDoneUpdate> {
1368 public StreamingResponseOutputItemDoneUpdate();
1369 public ResponseItem Item { get; set; }
1370 public int OutputIndex { get; set; }
1371 }
1372 public class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseOutputTextDeltaUpdate>, IPersistableModel<StreamingResponseOutputTextDeltaUpdate> {
1373 public StreamingResponseOutputTextDeltaUpdate();
1374 public int ContentIndex { get; set; }
1375 public string Delta { get; set; }
1376 public string ItemId { get; set; }
1377 public int OutputIndex { get; set; }
1378 }
1379 public class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseOutputTextDoneUpdate>, IPersistableModel<StreamingResponseOutputTextDoneUpdate> {
1380 public StreamingResponseOutputTextDoneUpdate();
1381 public int ContentIndex { get; set; }
1382 public string ItemId { get; set; }
1383 public int OutputIndex { get; set; }
1384 public string Text { get; set; }
1385 }
1386 public class StreamingResponseQueuedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseQueuedUpdate>, IPersistableModel<StreamingResponseQueuedUpdate> {
1387 public StreamingResponseQueuedUpdate();
1388 public ResponseResult Response { get; set; }
1389 }
1390 public class StreamingResponseReasoningSummaryPartAddedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningSummaryPartAddedUpdate>, IPersistableModel<StreamingResponseReasoningSummaryPartAddedUpdate> {
1391 public StreamingResponseReasoningSummaryPartAddedUpdate();
1392 public string ItemId { get; set; }
1393 public int OutputIndex { get; set; }
1394 public ReasoningSummaryPart Part { get; set; }
1395 public int SummaryIndex { get; set; }
1396 }
1397 public class StreamingResponseReasoningSummaryPartDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningSummaryPartDoneUpdate>, IPersistableModel<StreamingResponseReasoningSummaryPartDoneUpdate> {
1398 public StreamingResponseReasoningSummaryPartDoneUpdate();
1399 public string ItemId { get; set; }
1400 public int OutputIndex { get; set; }
1401 public ReasoningSummaryPart Part { get; set; }
1402 public int SummaryIndex { get; set; }
1403 }
1404 public class StreamingResponseReasoningSummaryTextDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningSummaryTextDeltaUpdate>, IPersistableModel<StreamingResponseReasoningSummaryTextDeltaUpdate> {
1405 public StreamingResponseReasoningSummaryTextDeltaUpdate();
1406 public string Delta { get; set; }
1407 public string ItemId { get; set; }
1408 public int OutputIndex { get; set; }
1409 public int SummaryIndex { get; set; }
1410 }
1411 public class StreamingResponseReasoningSummaryTextDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningSummaryTextDoneUpdate>, IPersistableModel<StreamingResponseReasoningSummaryTextDoneUpdate> {
1412 public StreamingResponseReasoningSummaryTextDoneUpdate();
1413 public string ItemId { get; set; }
1414 public int OutputIndex { get; set; }
1415 public int SummaryIndex { get; set; }
1416 public string Text { get; set; }
1417 }
1418 public class StreamingResponseReasoningTextDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningTextDeltaUpdate>, IPersistableModel<StreamingResponseReasoningTextDeltaUpdate> {
1419 public StreamingResponseReasoningTextDeltaUpdate();
1420 public int ContentIndex { get; set; }
1421 public string Delta { get; set; }
1422 public string ItemId { get; set; }
1423 public int OutputIndex { get; set; }
1424 }
1425 public class StreamingResponseReasoningTextDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseReasoningTextDoneUpdate>, IPersistableModel<StreamingResponseReasoningTextDoneUpdate> {
1426 public StreamingResponseReasoningTextDoneUpdate();
1427 public int ContentIndex { get; set; }
1428 public string ItemId { get; set; }
1429 public int OutputIndex { get; set; }
1430 public string Text { get; set; }
1431 }
1432 public class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseRefusalDeltaUpdate>, IPersistableModel<StreamingResponseRefusalDeltaUpdate> {
1433 public StreamingResponseRefusalDeltaUpdate();
1434 public int ContentIndex { get; set; }
1435 public string Delta { get; set; }
1436 public string ItemId { get; set; }
1437 public int OutputIndex { get; set; }
1438 }
1439 public class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseRefusalDoneUpdate>, IPersistableModel<StreamingResponseRefusalDoneUpdate> {
1440 public StreamingResponseRefusalDoneUpdate();
1441 public int ContentIndex { get; set; }
1442 public string ItemId { get; set; }
1443 public int OutputIndex { get; set; }
1444 public string Refusal { get; set; }
1445 }
1446 public class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseTextAnnotationAddedUpdate>, IPersistableModel<StreamingResponseTextAnnotationAddedUpdate> {
1447 public StreamingResponseTextAnnotationAddedUpdate();
1448 public BinaryData Annotation { get; set; }
1449 public int AnnotationIndex { get; set; }
1450 public int ContentIndex { get; set; }
1451 public string ItemId { get; set; }
1452 public int OutputIndex { get; set; }
1453 }
1454 public class StreamingResponseUpdate : IJsonModel<StreamingResponseUpdate>, IPersistableModel<StreamingResponseUpdate> {
1455 [Serialization.JsonIgnore]
1456 [EditorBrowsable(EditorBrowsableState.Never)]
1457 public ref JsonPatch Patch { get; }
1458 public int SequenceNumber { get; set; }
1459 }
1460 public class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseWebSearchCallCompletedUpdate>, IPersistableModel<StreamingResponseWebSearchCallCompletedUpdate> {
1461 public StreamingResponseWebSearchCallCompletedUpdate();
1462 public string ItemId { get; set; }
1463 public int OutputIndex { get; set; }
1464 }
1465 public class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseWebSearchCallInProgressUpdate>, IPersistableModel<StreamingResponseWebSearchCallInProgressUpdate> {
1466 public StreamingResponseWebSearchCallInProgressUpdate();
1467 public string ItemId { get; set; }
1468 public int OutputIndex { get; set; }
1469 }
1470 public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseWebSearchCallSearchingUpdate>, IPersistableModel<StreamingResponseWebSearchCallSearchingUpdate> {
1471 public StreamingResponseWebSearchCallSearchingUpdate();
1472 public string ItemId { get; set; }
1473 public int OutputIndex { get; set; }
1474 }
1475 public class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel<UriCitationMessageAnnotation>, IPersistableModel<UriCitationMessageAnnotation> {
1476 public UriCitationMessageAnnotation(Uri uri, int startIndex, int endIndex, string title);
1477 public int EndIndex { get; set; }
1478 public int StartIndex { get; set; }
1479 public string Title { get; set; }
1480 public Uri Uri { get; set; }
1481 }
1482 public class WebSearchAction : IJsonModel<WebSearchAction>, IPersistableModel<WebSearchAction> {
1483 [Serialization.JsonIgnore]
1484 [EditorBrowsable(EditorBrowsableState.Never)]
1485 public ref JsonPatch Patch { get; }
1486 }
1487 public class WebSearchActionSource : IJsonModel<WebSearchActionSource>, IPersistableModel<WebSearchActionSource> {
1488 [Serialization.JsonIgnore]
1489 [EditorBrowsable(EditorBrowsableState.Never)]
1490 public ref JsonPatch Patch { get; }
1491 }
1492 public class WebSearchActionUriSource : WebSearchActionSource, IJsonModel<WebSearchActionUriSource>, IPersistableModel<WebSearchActionUriSource> {
1493 public WebSearchActionUriSource(Uri uri);
1494 public Uri Uri { get; set; }
1495 }
1496 public class WebSearchCallResponseItem : ResponseItem, IJsonModel<WebSearchCallResponseItem>, IPersistableModel<WebSearchCallResponseItem> {
1497 public WebSearchCallResponseItem();
1498 public WebSearchAction Action { get; set; }
1499 public WebSearchCallStatus? Status { get; set; }
1500 }
1501 public enum WebSearchCallStatus {
1502 InProgress = 0,
1503 Searching = 1,
1504 Completed = 2,
1505 Failed = 3
1506 }
1507 public class WebSearchFindInPageAction : WebSearchAction, IJsonModel<WebSearchFindInPageAction>, IPersistableModel<WebSearchFindInPageAction> {
1508 public WebSearchFindInPageAction(Uri uri, string pattern);
1509 public string Pattern { get; set; }
1510 public Uri Uri { get; set; }
1511 }
1512 public class WebSearchOpenPageAction : WebSearchAction, IJsonModel<WebSearchOpenPageAction>, IPersistableModel<WebSearchOpenPageAction> {
1513 public WebSearchOpenPageAction();
1514 public Uri Uri { get; set; }
1515 }
1516 public class WebSearchPreviewTool : ResponseTool, IJsonModel<WebSearchPreviewTool>, IPersistableModel<WebSearchPreviewTool> {
1517 public WebSearchPreviewTool();
1518 public WebSearchToolContextSize? SearchContextSize { get; set; }
1519 public WebSearchToolLocation UserLocation { get; set; }
1520 }
1521 public class WebSearchSearchAction : WebSearchAction, IJsonModel<WebSearchSearchAction>, IPersistableModel<WebSearchSearchAction> {
1522 public WebSearchSearchAction();
1523 public IList<string> Queries { get; }
1524 [Obsolete("This property is obsolete. Use the Queries property instead.")]
1525 public string Query { get; set; }
1526 public IList<WebSearchActionSource> Sources { get; }
1527 }
1528 public class WebSearchTool : ResponseTool, IJsonModel<WebSearchTool>, IPersistableModel<WebSearchTool> {
1529 public WebSearchTool();
1530 public WebSearchToolFilters Filters { get; set; }
1531 public WebSearchToolContextSize? SearchContextSize { get; set; }
1532 public WebSearchToolLocation UserLocation { get; set; }
1533 }
1534 public class WebSearchToolApproximateLocation : WebSearchToolLocation, IJsonModel<WebSearchToolApproximateLocation>, IPersistableModel<WebSearchToolApproximateLocation> {
1535 public WebSearchToolApproximateLocation();
1536 public string City { get; set; }
1537 public string Country { get; set; }
1538 public string Region { get; set; }
1539 public string Timezone { get; set; }
1540 }
1541 public readonly partial struct WebSearchToolContextSize : IEquatable<WebSearchToolContextSize> {
1542 public WebSearchToolContextSize(string value);
1543 public static WebSearchToolContextSize High { get; }
1544 public static WebSearchToolContextSize Low { get; }
1545 public static WebSearchToolContextSize Medium { get; }
1546 public readonly bool Equals(WebSearchToolContextSize other);
1547 [EditorBrowsable(EditorBrowsableState.Never)]
1548 public override readonly bool Equals(object obj);
1549 [EditorBrowsable(EditorBrowsableState.Never)]
1550 public override readonly int GetHashCode();
1551 public static bool operator ==(WebSearchToolContextSize left, WebSearchToolContextSize right);
1552 public static implicit operator WebSearchToolContextSize(string value);
1553 public static implicit operator WebSearchToolContextSize?(string value);
1554 public static bool operator !=(WebSearchToolContextSize left, WebSearchToolContextSize right);
1555 public override readonly string ToString();
1556 }
1557 public class WebSearchToolFilters : IJsonModel<WebSearchToolFilters>, IPersistableModel<WebSearchToolFilters> {
1558 public IList<string> AllowedDomains { get; set; }
1559 [Serialization.JsonIgnore]
1560 [EditorBrowsable(EditorBrowsableState.Never)]
1561 public ref JsonPatch Patch { get; }
1562 }
1563 public class WebSearchToolLocation : IJsonModel<WebSearchToolLocation>, IPersistableModel<WebSearchToolLocation> {
1564 [Serialization.JsonIgnore]
1565 [EditorBrowsable(EditorBrowsableState.Never)]
1566 public ref JsonPatch Patch { get; }
1567 public static WebSearchToolApproximateLocation CreateApproximateLocation(string country = null, string region = null, string city = null, string timezone = null);
1568 }
1569}