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