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