diff --git a/.claude/skills/tryagi-openai/SKILL.md b/.claude/skills/tryagi-openai/SKILL.md index 2b167354d..1e79c306c 100644 --- a/.claude/skills/tryagi-openai/SKILL.md +++ b/.claude/skills/tryagi-openai/SKILL.md @@ -35,6 +35,7 @@ dnx tryAGI.OpenAI.CLI --help | `completion` | 1 | Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position. | | `conversation` | 8 | Manage conversations and conversation items. | | `data-retention` | 4 | | +| `decision` | 1 | | | `embedding` | 1 | Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. | | `eval` | 12 | Manage and run evals in the OpenAI platform. | | `file` | 5 | Files are used to upload documents that can be used with features like Assistants and Fine-tuning. | @@ -61,7 +62,7 @@ dnx tryAGI.OpenAI.CLI --help | `usage` | 11 | | | `user` | 4 | | | `user-organization-role-assignment` | 4 | | -| `vault` | 9 | | +| `vault` | 10 | | | `vector-store` | 16 | | | `default` | 42 | | diff --git a/.claude/skills/tryagi-openai/commands.md b/.claude/skills/tryagi-openai/commands.md index efad02e04..aba2ab8b8 100644 --- a/.claude/skills/tryagi-openai/commands.md +++ b/.claude/skills/tryagi-openai/commands.md @@ -162,6 +162,12 @@ Manage conversations and conversation items. | `update-organization-data-retention` | `POST /organization/data_retention` | Update organization data retention | | `update-project-data-retention` | `POST /organization/projects/{project_id}/data_retention` | Update project data retention | +## `decision` + +| Command | Route | Description | +|---------|-------|-------------| +| `create-decision` | `POST /decisions` | Create a decision | + ## `embedding` Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. @@ -498,6 +504,7 @@ Use Uploads to upload large files in multiple parts. | `retrieve-vault` | `GET /vaults/{vault_id}` | Retrieve a vault | | `retrieve-vault-credential` | `GET /vaults/{vault_id}/credentials/{credential_id}` | Retrieve a vault credential | | `rotate-vault-credential` | `POST /vaults/{vault_id}/credentials/{credential_id}` | Update a vault credential | +| `update-vault` | `POST /vaults/{vault_id}` | Update a vault | ## `vector-store` diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs index 25fb1a995..2d693ee85 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs @@ -53,7 +53,7 @@ internal static partial class AgentsCreateAgentCommandApiCommand private static Option?> Tools { get; } = new( name: @"--tools") { - Description = @"Tools available to the agent. Defaults to an empty list.", + Description = @"Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON.", }; private static readonly MultiAgentConfigCurrentParamOptionSet MultiAgentOptions = MultiAgentConfigCurrentParamOptionSet.Create(@"multi-agent"); private static Option Input { get; } = new(@"--input") diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs index 1f565eebc..deb35a3d7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs @@ -58,7 +58,7 @@ internal static partial class AgentsUpdateAgentCommandApiCommand private static Option?> Tools { get; } = new( name: @"--tools") { - Description = @"Tools available to the agent.", + Description = @"Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON.", }; private static readonly MultiAgentConfigCurrentParamOptionSet MultiAgentOptions = MultiAgentConfigCurrentParamOptionSet.Create(@"multi-agent"); private static Option Input { get; } = new(@"--input") diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs index 2429ff14d..5c26f43e1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs @@ -26,6 +26,7 @@ public static Command Create() command.Subcommands.Add(CompletionsApiGroupCommand.Create()); command.Subcommands.Add(ConversationsApiGroupCommand.Create()); command.Subcommands.Add(DataRetentionApiGroupCommand.Create()); + command.Subcommands.Add(DecisionsApiGroupCommand.Create()); command.Subcommands.Add(DefaultApiGroupCommand.Create()); command.Subcommands.Add(EmbeddingsApiGroupCommand.Create()); command.Subcommands.Add(EvalsApiGroupCommand.Create()); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsApiGroupCommand.g.cs new file mode 100644 index 000000000..e9e0ad6e4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsApiGroupCommand.g.cs @@ -0,0 +1,18 @@ +#nullable enable + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class DecisionsApiGroupCommand +{ + static partial void CustomizeCommand(ref Command command); + + public static Command Create() + { + var command = new Command(@"decisions", @"Decisions endpoint commands."); + command.Subcommands.Add(DecisionsCreateDecisionCommandApiCommand.Create()); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs new file mode 100644 index 000000000..e3099c60f --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs @@ -0,0 +1,145 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class DecisionsCreateDecisionCommandApiCommand +{ + private static Option Model { get; } = new( + name: @"--model") + { + Description = @"", + Required = true, + }; + + private static Option InputOption { get; } = new( + name: @"--input") + { + Description = @"Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.", + Required = true, + }; + + private static Option> Questions { get; } = new( + name: @"--questions") + { + Description = @"", + Required = true, + }; + + private static Option SafetyIdentifier { get; } = new( + name: @"--safety-identifier") + { + Description = @"Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity.", + }; + private static Option RequestInput { get; } = new(@"--request-input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.DecisionResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.DecisionResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"create-decision", @"Create a decision +Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order. + +Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request. + +Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed."); + command.Options.Add(Model); + command.Options.Add(InputOption); + command.Options.Add(Questions); + command.Options.Add(SafetyIdentifier); + command.Options.Add(RequestInput); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(RequestInput) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --request-input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + RequestInput, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var model = parseResult.GetRequiredValue(Model); + var input = parseResult.GetRequiredValue(InputOption); + var questions = parseResult.GetRequiredValue(Questions); + var safetyIdentifier = CliRuntime.WasSpecified(parseResult, SafetyIdentifier) ? parseResult.GetValue(SafetyIdentifier) : (__requestBase is { } __SafetyIdentifierBaseValue ? __SafetyIdentifierBaseValue.SafetyIdentifier : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Decisions.CreateDecisionAsync( + model: model, + input: input, + questions: questions, + safetyIdentifier: safetyIdentifier, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + if (!await CliRuntime.TryWriteOutputDirectoryAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + @"Answers", + cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs index ef5ed77c0..af397542d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs @@ -20,6 +20,7 @@ public static Command Create() command.Subcommands.Add(VaultsRetrieveVaultCommandApiCommand.Create()); command.Subcommands.Add(VaultsRetrieveVaultCredentialCommandApiCommand.Create()); command.Subcommands.Add(VaultsRotateVaultCredentialCommandApiCommand.Create()); + command.Subcommands.Add(VaultsUpdateVaultCommandApiCommand.Create()); CustomizeCommand(ref command); return command; } diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs index 062dc8804..55c7b8f68 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs @@ -13,6 +13,12 @@ internal static partial class VaultsListVaultCredentialsCommandApiCommand Description = @"The ID of the vault.", }; + private static Option?> Metadata { get; } = new( + name: @"--metadata") + { + Description = @"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters and values up to 512 characters. Filtering is eventually consistent; metadata changes may take time to appear.", + }; + private static Option Order { get; } = new( name: @"--order") { @@ -64,6 +70,7 @@ public static Command Create(string? commandName = null) var command = new Command(commandName ?? @"list-vault-credentials", @"List vault credentials Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); + command.Options.Add(Metadata); command.Options.Add(Order); command.Options.Add(Limit); command.Options.Add(Status); @@ -74,6 +81,7 @@ public static Command Create(string? commandName = null) await CliRuntime.RunAsync(async () => { var vaultId = parseResult.GetRequiredValue(VaultId); + var metadata = parseResult.GetValue(Metadata); var order = parseResult.GetValue(Order); var limit = parseResult.GetValue(Limit); var status = parseResult.GetValue(Status); @@ -83,6 +91,7 @@ await CliRuntime.RunAsync(async () => var response = await client.Vaults.ListVaultCredentialsAsync( vaultId: vaultId, + metadata: metadata, order: order, limit: limit, status: status, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs index 6cda370e0..f91dc806b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs @@ -7,6 +7,12 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; internal static partial class VaultsListVaultsCommandApiCommand { + private static Option?> Metadata { get; } = new( + name: @"--metadata") + { + Description = @"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters and values up to 512 characters. Filtering is eventually consistent; metadata changes may take time to appear.", + }; + private static Option Order { get; } = new( name: @"--order") { @@ -57,6 +63,7 @@ public static Command Create(string? commandName = null) { var command = new Command(commandName ?? @"list-vaults", @"List vaults Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); + command.Options.Add(Metadata); command.Options.Add(Order); command.Options.Add(Limit); command.Options.Add(Status); @@ -66,6 +73,7 @@ public static Command Create(string? commandName = null) command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { + var metadata = parseResult.GetValue(Metadata); var order = parseResult.GetValue(Order); var limit = parseResult.GetValue(Limit); var status = parseResult.GetValue(Status); @@ -74,6 +82,7 @@ await CliRuntime.RunAsync(async () => var response = await client.Vaults.ListVaultsAsync( + metadata: metadata, order: order, limit: limit, status: status, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsUpdateVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsUpdateVaultCommandApiCommand.g.cs new file mode 100644 index 000000000..d27968b17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsUpdateVaultCommandApiCommand.g.cs @@ -0,0 +1,121 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class VaultsUpdateVaultCommandApiCommand +{ + private static Argument VaultId { get; } = new( + name: @"vault-id") + { + Description = @"The ID of the vault.", + }; + + private static Option?> Metadata { get; } = new( + name: @"--metadata") + { + Description = @"Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.", + }; + + private static Option NameOption { get; } = new( + name: @"--name") + { + Description = @"A replacement name. Omit to leave unchanged, or pass null to clear it. The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming.", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.VaultResource value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.VaultResource value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"update-vault", @"Update a vault +Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); + command.Arguments.Add(VaultId); + command.Options.Add(Metadata); + command.Options.Add(NameOption); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var vaultId = parseResult.GetRequiredValue(VaultId); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Vaults.UpdateVaultAsync( + vaultId: vaultId, + metadata: metadata, + name: name, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs index 013544c6e..07f865497 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs @@ -718,7 +718,7 @@ partial void ProcessCreateAgentResponseContent( /// Additional instructions appended to the agent's default base instructions. Omit or set to null to add no custom instructions. /// /// - /// Tools available to the agent. Defaults to an empty list. + /// Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// /// /// Configuration for creating and coordinating subagents. Subagent tools are disabled by default. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs index ded016f81..6d9c1bd7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs @@ -529,6 +529,43 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( h => h.Key, h => h.Value)); } + // The Files API rate limit for your user has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // An internal error occurred. if ((int)__response.StatusCode == 500) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs index 27526733b..69acfa1d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs @@ -536,6 +536,43 @@ partial void ProcessCreateAgentSessionResponseContent( h => h.Key, h => h.Value)); } + // The Files API rate limit for your user has been exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // An internal error occurred. if ((int)__response.StatusCode == 500) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs index 67455268d..b2e68056a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs @@ -731,7 +731,7 @@ partial void ProcessUpdateAgentResponseContent( /// A replacement name. Omit to leave unchanged, or pass null to clear it. /// /// - /// Tools available to the agent. + /// Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Decisions.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Decisions.JsonSerializerContext.g.cs new file mode 100644 index 000000000..c6a94f805 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Decisions.JsonSerializerContext.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ /// + /// + /// + public sealed partial class DecisionsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static DecisionsSourceGenerationContext Default { get; } = new(DefaultOptions); + + private DecisionsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::tryAGI.OpenAI.SourceGenerationContext.AddConverters(options); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => global::tryAGI.OpenAI.SourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs new file mode 100644 index 000000000..991647a72 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs @@ -0,0 +1,479 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class DecisionsClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateDecisionSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateDecisionSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_CreateDecisionSecurityRequirement0, + }; + partial void PrepareCreateDecisionArguments( + global::System.Net.Http.HttpClient httpClient, + global::tryAGI.OpenAI.DecisionRequest request); + partial void PrepareCreateDecisionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::tryAGI.OpenAI.DecisionRequest request); + partial void ProcessCreateDecisionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateDecisionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateDecisionAsync( + + global::tryAGI.OpenAI.DecisionRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateDecisionAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateDecisionAsResponseAsync( + + global::tryAGI.OpenAI.DecisionRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateDecisionArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateDecisionSecurityRequirements, + operationName: "CreateDecisionAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: "/decisions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateDecisionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDecision", + methodName: "CreateDecisionAsync", + pathTemplate: "\"/decisions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDecision", + methodName: "CreateDecisionAsync", + pathTemplate: "\"/decisions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDecision", + methodName: "CreateDecisionAsync", + pathTemplate: "\"/decisions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateDecisionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDecision", + methodName: "CreateDecisionAsync", + pathTemplate: "\"/decisions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDecision", + methodName: "CreateDecisionAsync", + pathTemplate: "\"/decisions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateDecisionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.DecisionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.DecisionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// + /// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request. + /// + /// + /// + /// Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateDecisionAsync( + string model, + global::tryAGI.OpenAI.DecisionInput input, + global::System.Collections.Generic.IList questions, + string? safetyIdentifier = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.DecisionRequest + { + Model = model, + Input = input, + Questions = questions, + SafetyIdentifier = safetyIdentifier, + }; + + return await CreateDecisionAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.g.cs new file mode 100644 index 000000000..5ac978af6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.g.cs @@ -0,0 +1,147 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class DecisionsClient : global::tryAGI.OpenAI.IDecisionsClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://api.openai.com/v1"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::tryAGI.OpenAI.AutoSDKClientOptions Options { get; } + + + /// + public global::System.Func CreateIdempotencyKey { get; set; } = () => global::System.Guid.NewGuid().ToString("D"); + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::tryAGI.OpenAI.DecisionsSourceGenerationContext.Default); + + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } + + + /// + /// Creates a new instance of the DecisionsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public DecisionsClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the DecisionsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public DecisionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::tryAGI.OpenAI.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the DecisionsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public DecisionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::tryAGI.OpenAI.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::tryAGI.OpenAI.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgent.g.cs index c5c539466..eaab278d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.CreateAgent.g.cs @@ -56,7 +56,7 @@ public partial interface IAgentsClient /// Additional instructions appended to the agent's default base instructions. Omit or set to null to add no custom instructions. /// /// - /// Tools available to the agent. Defaults to an empty list. + /// Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// /// /// Configuration for creating and coordinating subagents. Subagent tools are disabled by default. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgent.g.cs index 936c52a03..0b4170f43 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAgentsClient.UpdateAgent.g.cs @@ -64,7 +64,7 @@ public partial interface IAgentsClient /// A replacement name. Omit to leave unchanged, or pass null to clear it. /// /// - /// Tools available to the agent. + /// Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs new file mode 100644 index 000000000..9c585dd77 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IDecisionsClient + { + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateDecisionAsync( + + global::tryAGI.OpenAI.DecisionRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateDecisionAsResponseAsync( + + global::tryAGI.OpenAI.DecisionRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a decision
+ /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
+ /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
+ /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + ///
+ /// + /// + /// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request. + /// + /// + /// + /// Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateDecisionAsync( + string model, + global::tryAGI.OpenAI.DecisionInput input, + global::System.Collections.Generic.IList questions, + string? safetyIdentifier = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.g.cs new file mode 100644 index 000000000..ab75eec5e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IDecisionsClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::tryAGI.OpenAI.AutoSDKClientOptions Options { get; } + + /// + /// Creates idempotency keys for generated idempotent requests when the caller does not provide one. + /// + public global::System.Func CreateIdempotencyKey { get; set; } + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs index 0660df2b7..7185614a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs @@ -99,6 +99,11 @@ public partial interface IOpenAiClient : global::System.IDisposable /// public DataRetentionClient DataRetention { get; } + /// + /// + /// + public DecisionsClient Decisions { get; } + /// /// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaultCredentials.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaultCredentials.g.cs index 0a624a006..b3e504153 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaultCredentials.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaultCredentials.g.cs @@ -9,6 +9,7 @@ public partial interface IVaultsClient /// Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -23,6 +24,7 @@ public partial interface IVaultsClient /// global::System.Threading.Tasks.Task ListVaultCredentialsAsync( string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -34,6 +36,7 @@ public partial interface IVaultsClient /// Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -48,6 +51,7 @@ public partial interface IVaultsClient /// global::System.Threading.Tasks.Task> ListVaultCredentialsAsResponseAsync( string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -59,6 +63,7 @@ public partial interface IVaultsClient /// Wraps ListVaultCredentialsAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.VaultCredentialResource> that auto-pages over the response. /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -70,7 +75,8 @@ public partial interface IVaultsClient /// Initial cursor to start enumerating from. Defaults to null (first page). /// global::System.Collections.Generic.IAsyncEnumerable ListVaultCredentialsAutoPagingAsync( - string vaultId, global::tryAGI.OpenAI.ListOrderParam? order = default, + string vaultId, global::System.Collections.Generic.Dictionary? metadata = default, + global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, string? after = null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaults.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaults.g.cs index 88ef72604..956137de4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaults.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.ListVaults.g.cs @@ -8,6 +8,7 @@ public partial interface IVaultsClient /// List vaults
/// Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -21,6 +22,7 @@ public partial interface IVaultsClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListVaultsAsync( + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -31,6 +33,7 @@ public partial interface IVaultsClient /// List vaults
/// Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -44,6 +47,7 @@ public partial interface IVaultsClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ListVaultsAsResponseAsync( + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -54,6 +58,7 @@ public partial interface IVaultsClient /// /// Wraps ListVaultsAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.VaultResource> that auto-pages over the response. /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -65,7 +70,8 @@ public partial interface IVaultsClient /// Initial cursor to start enumerating from. Defaults to null (first page). /// global::System.Collections.Generic.IAsyncEnumerable ListVaultsAutoPagingAsync( - global::tryAGI.OpenAI.ListOrderParam? order = default, + global::System.Collections.Generic.Dictionary? metadata = default, + global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, string? after = null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.UpdateVault.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.UpdateVault.g.cs new file mode 100644 index 000000000..7811b0665 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVaultsClient.UpdateVault.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IVaultsClient + { + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateVaultAsync( + string vaultId, + + global::tryAGI.OpenAI.UpdateVaultParams request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateVaultAsResponseAsync( + string vaultId, + + global::tryAGI.OpenAI.UpdateVaultParams request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. + /// + /// + /// A replacement name. Omit to leave unchanged, or pass null to clear it. The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateVaultAsync( + string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, + string? name = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResource.g.cs new file mode 100644 index 000000000..665862039 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResource.g.cs @@ -0,0 +1,102 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class AnswerResourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnswerResourceDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.AnswerResourcePredicate? predicate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnswerResourceDiscriminatorType.Predicate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourcePredicate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnswerResourcePredicate)}"); + predicate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.AnswerResourceChoice? choice = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnswerResourceDiscriminatorType.Choice) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnswerResourceChoice)}"); + choice = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.AnswerResourceScore? score = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnswerResourceDiscriminatorType.Score) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceScore), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnswerResourceScore)}"); + score = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.AnswerResourceRefusal? refusal = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnswerResourceDiscriminatorType.Refusal) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnswerResourceRefusal)}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.AnswerResource( + discriminator?.Type, + predicate, + + choice, + + score, + + refusal + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsPredicate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourcePredicate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnswerResourcePredicate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPredicate(), typeInfo); + } + else if (value.IsChoice) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnswerResourceChoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoice(), typeInfo); + } + else if (value.IsScore) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceScore), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnswerResourceScore).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScore(), typeInfo); + } + else if (value.IsRefusal) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnswerResourceRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnswerResourceRefusal).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceType.g.cs new file mode 100644 index 000000000..d73e40362 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceChoiceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceChoiceType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceChoiceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceChoiceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceChoiceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceChoiceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeNullable.g.cs new file mode 100644 index 000000000..d130918a7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceChoiceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceChoiceType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceChoiceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceChoiceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceChoiceType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceChoiceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorType.g.cs new file mode 100644 index 000000000..4ba2253f2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..fd47dfce6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateType.g.cs new file mode 100644 index 000000000..893a047c4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourcePredicateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourcePredicateType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourcePredicateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourcePredicateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourcePredicateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourcePredicateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourcePredicateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeNullable.g.cs new file mode 100644 index 000000000..a2af18737 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourcePredicateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourcePredicateType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourcePredicateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourcePredicateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourcePredicateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourcePredicateType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourcePredicateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalType.g.cs new file mode 100644 index 000000000..5bc313fc5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceRefusalTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceRefusalType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceRefusalTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceRefusalType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceRefusalType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceRefusalType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceRefusalTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeNullable.g.cs new file mode 100644 index 000000000..119f743b6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceRefusalTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceRefusalType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceRefusalTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceRefusalType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceRefusalType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceRefusalType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceRefusalTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreType.g.cs new file mode 100644 index 000000000..dfa47bcf8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceScoreTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceScoreType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceScoreTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceScoreType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceScoreType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceScoreTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeNullable.g.cs new file mode 100644 index 000000000..8cb3426cd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnswerResourceScoreTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnswerResourceScoreType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnswerResourceScoreTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnswerResourceScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnswerResourceScoreType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnswerResourceScoreType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnswerResourceScoreTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamType.g.cs new file mode 100644 index 000000000..7d4820404 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputFunctionToolParamTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeNullable.g.cs new file mode 100644 index 000000000..8f0eaf76a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputFunctionToolParamTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 000000000..a517fcc85 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..f220fccd1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamType.g.cs new file mode 100644 index 000000000..6d355486f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputNamespaceToolParamTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeNullable.g.cs new file mode 100644 index 000000000..2fc9d02d0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputNamespaceToolParamTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputTool.g.cs new file mode 100644 index 000000000..36abe8cae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputTool.g.cs @@ -0,0 +1,830 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class BetaToolSearchOutputToolJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputTool Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("allowed_callers")) __score0++; + if (__jsonProps.Contains("async")) __score0++; + if (__jsonProps.Contains("defer_loading")) __score0++; + if (__jsonProps.Contains("description")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; + if (__jsonProps.Contains("parameters")) __score0++; + if (__jsonProps.Contains("strict")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("max_num_results")) __score1++; + if (__jsonProps.Contains("ranking_options")) __score1++; + if (__jsonProps.Contains("ranking_options.hybrid_search")) __score1++; + if (__jsonProps.Contains("ranking_options.ranker")) __score1++; + if (__jsonProps.Contains("ranking_options.score_threshold")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + if (__jsonProps.Contains("vector_store_ids")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("type")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("display_height")) __score3++; + if (__jsonProps.Contains("display_width")) __score3++; + if (__jsonProps.Contains("environment")) __score3++; + if (__jsonProps.Contains("type")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("external_web_access")) __score4++; + if (__jsonProps.Contains("filters")) __score4++; + if (__jsonProps.Contains("search_context_size")) __score4++; + if (__jsonProps.Contains("type")) __score4++; + if (__jsonProps.Contains("user_location")) __score4++; + var __score5 = 0; + if (__jsonProps.Contains("allowed_callers")) __score5++; + if (__jsonProps.Contains("allowed_tools")) __score5++; + if (__jsonProps.Contains("authorization")) __score5++; + if (__jsonProps.Contains("connector_id")) __score5++; + if (__jsonProps.Contains("defer_loading")) __score5++; + if (__jsonProps.Contains("headers")) __score5++; + if (__jsonProps.Contains("require_approval")) __score5++; + if (__jsonProps.Contains("server_description")) __score5++; + if (__jsonProps.Contains("server_label")) __score5++; + if (__jsonProps.Contains("server_url")) __score5++; + if (__jsonProps.Contains("tunnel_id")) __score5++; + if (__jsonProps.Contains("type")) __score5++; + var __score6 = 0; + if (__jsonProps.Contains("allowed_callers")) __score6++; + if (__jsonProps.Contains("container")) __score6++; + if (__jsonProps.Contains("type")) __score6++; + var __score7 = 0; + if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("action")) __score8++; + if (__jsonProps.Contains("background")) __score8++; + if (__jsonProps.Contains("input_fidelity")) __score8++; + if (__jsonProps.Contains("input_image_mask")) __score8++; + if (__jsonProps.Contains("input_image_mask.file_id")) __score8++; + if (__jsonProps.Contains("input_image_mask.image_url")) __score8++; + if (__jsonProps.Contains("model")) __score8++; + if (__jsonProps.Contains("moderation")) __score8++; + if (__jsonProps.Contains("output_compression")) __score8++; + if (__jsonProps.Contains("output_format")) __score8++; + if (__jsonProps.Contains("partial_images")) __score8++; + if (__jsonProps.Contains("quality")) __score8++; + if (__jsonProps.Contains("size")) __score8++; + if (__jsonProps.Contains("type")) __score8++; + var __score9 = 0; + if (__jsonProps.Contains("type")) __score9++; + var __score10 = 0; + if (__jsonProps.Contains("allowed_callers")) __score10++; + if (__jsonProps.Contains("environment")) __score10++; + if (__jsonProps.Contains("type")) __score10++; + var __score11 = 0; + if (__jsonProps.Contains("allowed_callers")) __score11++; + if (__jsonProps.Contains("async")) __score11++; + if (__jsonProps.Contains("defer_loading")) __score11++; + if (__jsonProps.Contains("description")) __score11++; + if (__jsonProps.Contains("format")) __score11++; + if (__jsonProps.Contains("name")) __score11++; + if (__jsonProps.Contains("type")) __score11++; + var __score12 = 0; + if (__jsonProps.Contains("description")) __score12++; + if (__jsonProps.Contains("name")) __score12++; + if (__jsonProps.Contains("tools")) __score12++; + if (__jsonProps.Contains("type")) __score12++; + var __score13 = 0; + if (__jsonProps.Contains("description")) __score13++; + if (__jsonProps.Contains("execution")) __score13++; + if (__jsonProps.Contains("parameters")) __score13++; + if (__jsonProps.Contains("type")) __score13++; + var __score14 = 0; + if (__jsonProps.Contains("search_content_types")) __score14++; + if (__jsonProps.Contains("search_context_size")) __score14++; + if (__jsonProps.Contains("type")) __score14++; + if (__jsonProps.Contains("user_location")) __score14++; + var __score15 = 0; + if (__jsonProps.Contains("allowed_callers")) __score15++; + if (__jsonProps.Contains("type")) __score15++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } + if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + + global::tryAGI.OpenAI.BetaFunctionTool? function = default; + global::tryAGI.OpenAI.BetaFileSearchTool? fileSearch = default; + global::tryAGI.OpenAI.BetaComputerTool? computer = default; + global::tryAGI.OpenAI.BetaComputerUsePreviewTool? computerUsePreview = default; + global::tryAGI.OpenAI.BetaWebSearchTool? webSearch = default; + global::tryAGI.OpenAI.BetaMCPTool? mcp = default; + global::tryAGI.OpenAI.BetaCodeInterpreterTool? codeInterpreter = default; + global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? programmaticToolCalling = default; + global::tryAGI.OpenAI.BetaImageGenTool? imageGeneration = default; + global::tryAGI.OpenAI.BetaLocalShellToolParam? localShell = default; + global::tryAGI.OpenAI.BetaFunctionShellToolParam? shell = default; + global::tryAGI.OpenAI.BetaCustomToolParam? custom = default; + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? @namespace = default; + global::tryAGI.OpenAI.BetaToolSearchToolParam? toolSearch = default; + global::tryAGI.OpenAI.BetaWebSearchPreviewTool? webSearchPreview = default; + global::tryAGI.OpenAI.BetaApplyPatchToolParam? applyPatch = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionTool).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchTool).Name}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerTool).Name}"); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 3) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool).Name}"); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 4) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchTool).Name}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 5) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPTool).Name}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool).Name}"); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 7) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam).Name}"); + programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 8) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenTool).Name}"); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 9) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam).Name}"); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 10) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam).Name}"); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 11) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 12) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 13) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam).Name}"); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 14) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool).Name}"); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 15) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam).Name}"); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionTool).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchTool).Name}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerTool).Name}"); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool).Name}"); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchTool).Name}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPTool).Name}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool).Name}"); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam).Name}"); + programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenTool).Name}"); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam).Name}"); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam).Name}"); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam).Name}"); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool).Name}"); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam).Name}"); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.BetaToolSearchOutputTool( + function, + + fileSearch, + + computer, + + computerUsePreview, + + webSearch, + + mcp, + + codeInterpreter, + + programmaticToolCalling, + + imageGeneration, + + localShell, + + shell, + + custom, + + @namespace, + + toolSearch, + + webSearchPreview, + + applyPatch + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputTool value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); + } + else if (value.IsFileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); + } + else if (value.IsComputer) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); + } + else if (value.IsComputerUsePreview) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerUsePreview(), typeInfo); + } + else if (value.IsWebSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); + } + else if (value.IsMcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); + } + else if (value.IsCodeInterpreter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); + } + else if (value.IsProgrammaticToolCalling) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); + } + else if (value.IsImageGeneration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); + } + else if (value.IsLocalShell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShell(), typeInfo); + } + else if (value.IsShell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); + } + else if (value.IsNamespace) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); + } + else if (value.IsToolSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); + } + else if (value.IsWebSearchPreview) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchPreview(), typeInfo); + } + else if (value.IsApplyPatch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorType.g.cs new file mode 100644 index 000000000..ac7c3ccbe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..3d3fdb202 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaToolSearchOutputToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueParam.g.cs new file mode 100644 index 000000000..8494edb55 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueParam.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ChoiceValueParamJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChoiceValueParam Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? choiceValueParamVariant1 = default; + bool? choiceValueParamVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + choiceValueParamVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + choiceValueParamVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (choiceValueParamVariant1 == null && choiceValueParamVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + choiceValueParamVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (choiceValueParamVariant1 == null && choiceValueParamVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + choiceValueParamVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.ChoiceValueParam( + choiceValueParamVariant1, + + choiceValueParamVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChoiceValueParam value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsChoiceValueParamVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoiceValueParamVariant1(), typeInfo); + } + else if (value.IsChoiceValueParamVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoiceValueParamVariant2(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueResource.g.cs new file mode 100644 index 000000000..1dcca3f04 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChoiceValueResource.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ChoiceValueResourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChoiceValueResource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? choiceValueResourceVariant1 = default; + bool? choiceValueResourceVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + choiceValueResourceVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + choiceValueResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (choiceValueResourceVariant1 == null && choiceValueResourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + choiceValueResourceVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (choiceValueResourceVariant1 == null && choiceValueResourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + choiceValueResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.ChoiceValueResource( + choiceValueResourceVariant1, + + choiceValueResourceVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChoiceValueResource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsChoiceValueResourceVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoiceValueResourceVariant1(), typeInfo); + } + else if (value.IsChoiceValueResourceVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoiceValueResourceVariant2(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInput.g.cs new file mode 100644 index 000000000..f64b2b537 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInput.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class DecisionInputJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInput Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? decisionInputVariant1 = default; + global::System.Collections.Generic.IList? decisionInputVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + decisionInputVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + decisionInputVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (decisionInputVariant1 == null && decisionInputVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + decisionInputVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (decisionInputVariant1 == null && decisionInputVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + decisionInputVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.DecisionInput( + decisionInputVariant1, + + decisionInputVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInput value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsDecisionInputVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDecisionInputVariant1(), typeInfo); + } + else if (value.IsDecisionInputVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDecisionInputVariant2(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContent.g.cs new file mode 100644 index 000000000..d345a1263 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContent.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class DecisionInputContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputContent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? decisionInputContentVariant1 = default; + global::System.Collections.Generic.IList? parts = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + decisionInputContentVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + parts = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (decisionInputContentVariant1 == null && parts == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + decisionInputContentVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (decisionInputContentVariant1 == null && parts == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + parts = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.DecisionInputContent( + decisionInputContentVariant1, + + parts + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputContent value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsDecisionInputContentVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDecisionInputContentVariant1(), typeInfo); + } + else if (value.IsParts) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickParts(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorType.g.cs new file mode 100644 index 000000000..de2039dec --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputContentPartDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..c7e4d92d5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputContentPartDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartsItem.g.cs new file mode 100644 index 000000000..c626d8fa0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputContentPartsItem.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class DecisionInputContentPartsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputContentPartsItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.DecisionInputText? inputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType.InputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DecisionInputText)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.DecisionInputImage? inputImage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType.InputImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DecisionInputImage)}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.DecisionInputContentPartsItem( + discriminator?.Type, + inputText, + + inputImage + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputContentPartsItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsInputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DecisionInputText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); + } + else if (value.IsInputImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DecisionInputImage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageType.g.cs new file mode 100644 index 000000000..89f36ec13 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputImageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputImageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputImageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputImageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputImageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputImageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputImageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeNullable.g.cs new file mode 100644 index 000000000..e84ab8f91 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputImageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputImageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputImageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputImageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputImageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputImageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputImageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRole.g.cs new file mode 100644 index 000000000..3074696cf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputMessageRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputMessageRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputMessageRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputMessageRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputMessageRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputMessageRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleNullable.g.cs new file mode 100644 index 000000000..c18d74778 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputMessageRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputMessageRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputMessageRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputMessageRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputMessageRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputMessageRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageType.g.cs new file mode 100644 index 000000000..c665f9366 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputMessageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputMessageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeNullable.g.cs new file mode 100644 index 000000000..d8eac6de3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputMessageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputMessageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextType.g.cs new file mode 100644 index 000000000..abe4d1bb4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputTextTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputTextType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputTextTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputTextType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputTextType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputTextTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeNullable.g.cs new file mode 100644 index 000000000..c024cea5d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputTextTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputTextType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputTextTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputTextType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputTextType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputTextTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2Item.g.cs new file mode 100644 index 000000000..6a21d7365 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2Item.g.cs @@ -0,0 +1,57 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class DecisionInputVariant2ItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputVariant2Item Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.DecisionInputMessage? message = default; + if (discriminator?.Type == global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DecisionInputMessage)}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.DecisionInputVariant2Item( + discriminator?.Type, + message + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputVariant2Item value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DecisionInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DecisionInputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorType.g.cs new file mode 100644 index 000000000..679fde580 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputVariant2ItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..63f04838c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DecisionInputVariant2ItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParam.g.cs new file mode 100644 index 000000000..f43076cfa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParam.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageDetailParamJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageDetailParam Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageDetailParamExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageDetailParam)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageDetailParam); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageDetailParam value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ImageDetailParamExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParamNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParamNullable.g.cs new file mode 100644 index 000000000..01b05a8b6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageDetailParamNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageDetailParamNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageDetailParam? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageDetailParamExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageDetailParam)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageDetailParam?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageDetailParam? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ImageDetailParamExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParam.g.cs new file mode 100644 index 000000000..f7ed5cd20 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParam.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class QuestionParamJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParam Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.QuestionParamDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.QuestionParamPredicate? predicate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.QuestionParamDiscriminatorType.Predicate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamPredicate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.QuestionParamPredicate)}"); + predicate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.QuestionParamChoice? choice = default; + if (discriminator?.Type == global::tryAGI.OpenAI.QuestionParamDiscriminatorType.Choice) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.QuestionParamChoice)}"); + choice = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.QuestionParamScore? score = default; + if (discriminator?.Type == global::tryAGI.OpenAI.QuestionParamDiscriminatorType.Score) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamScore), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.QuestionParamScore)}"); + score = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.QuestionParam( + discriminator?.Type, + predicate, + + choice, + + score + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParam value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsPredicate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamPredicate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.QuestionParamPredicate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPredicate(), typeInfo); + } + else if (value.IsChoice) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.QuestionParamChoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChoice(), typeInfo); + } + else if (value.IsScore) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.QuestionParamScore), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.QuestionParamScore).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScore(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceType.g.cs new file mode 100644 index 000000000..bf6241f1f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamChoiceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamChoiceType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamChoiceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamChoiceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamChoiceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamChoiceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeNullable.g.cs new file mode 100644 index 000000000..ccd617429 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamChoiceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamChoiceType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamChoiceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamChoiceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamChoiceType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamChoiceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorType.g.cs new file mode 100644 index 000000000..b01b00805 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..6d87fcc34 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateType.g.cs new file mode 100644 index 000000000..c479452b5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamPredicateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamPredicateType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamPredicateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamPredicateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamPredicateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamPredicateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamPredicateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeNullable.g.cs new file mode 100644 index 000000000..660b640d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamPredicateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamPredicateType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamPredicateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamPredicateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamPredicateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamPredicateType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamPredicateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreType.g.cs new file mode 100644 index 000000000..75eb3f9d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamScoreTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamScoreType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamScoreTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamScoreType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamScoreType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamScoreTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeNullable.g.cs new file mode 100644 index 000000000..55eb56708 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class QuestionParamScoreTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.QuestionParamScoreType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.QuestionParamScoreTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.QuestionParamScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.QuestionParamScoreType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.QuestionParamScoreType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.QuestionParamScoreTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamType.g.cs new file mode 100644 index 000000000..a0d04875f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputFunctionToolParamTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeNullable.g.cs new file mode 100644 index 000000000..f824259ff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputFunctionToolParamTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 000000000..c9915c98d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..35238b1f1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamType.g.cs new file mode 100644 index 000000000..88e529df4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputNamespaceToolParamTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeNullable.g.cs new file mode 100644 index 000000000..48d03ab9d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputNamespaceToolParamTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputTool.g.cs new file mode 100644 index 000000000..1f7d617e4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputTool.g.cs @@ -0,0 +1,830 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ToolSearchOutputToolJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputTool Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("allowed_callers")) __score0++; + if (__jsonProps.Contains("async")) __score0++; + if (__jsonProps.Contains("defer_loading")) __score0++; + if (__jsonProps.Contains("description")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; + if (__jsonProps.Contains("parameters")) __score0++; + if (__jsonProps.Contains("strict")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("max_num_results")) __score1++; + if (__jsonProps.Contains("ranking_options")) __score1++; + if (__jsonProps.Contains("ranking_options.hybrid_search")) __score1++; + if (__jsonProps.Contains("ranking_options.ranker")) __score1++; + if (__jsonProps.Contains("ranking_options.score_threshold")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + if (__jsonProps.Contains("vector_store_ids")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("type")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("display_height")) __score3++; + if (__jsonProps.Contains("display_width")) __score3++; + if (__jsonProps.Contains("environment")) __score3++; + if (__jsonProps.Contains("type")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("external_web_access")) __score4++; + if (__jsonProps.Contains("filters")) __score4++; + if (__jsonProps.Contains("search_context_size")) __score4++; + if (__jsonProps.Contains("type")) __score4++; + if (__jsonProps.Contains("user_location")) __score4++; + var __score5 = 0; + if (__jsonProps.Contains("allowed_callers")) __score5++; + if (__jsonProps.Contains("allowed_tools")) __score5++; + if (__jsonProps.Contains("authorization")) __score5++; + if (__jsonProps.Contains("connector_id")) __score5++; + if (__jsonProps.Contains("defer_loading")) __score5++; + if (__jsonProps.Contains("headers")) __score5++; + if (__jsonProps.Contains("require_approval")) __score5++; + if (__jsonProps.Contains("server_description")) __score5++; + if (__jsonProps.Contains("server_label")) __score5++; + if (__jsonProps.Contains("server_url")) __score5++; + if (__jsonProps.Contains("tunnel_id")) __score5++; + if (__jsonProps.Contains("type")) __score5++; + var __score6 = 0; + if (__jsonProps.Contains("allowed_callers")) __score6++; + if (__jsonProps.Contains("container")) __score6++; + if (__jsonProps.Contains("type")) __score6++; + var __score7 = 0; + if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("action")) __score8++; + if (__jsonProps.Contains("background")) __score8++; + if (__jsonProps.Contains("input_fidelity")) __score8++; + if (__jsonProps.Contains("input_image_mask")) __score8++; + if (__jsonProps.Contains("input_image_mask.file_id")) __score8++; + if (__jsonProps.Contains("input_image_mask.image_url")) __score8++; + if (__jsonProps.Contains("model")) __score8++; + if (__jsonProps.Contains("moderation")) __score8++; + if (__jsonProps.Contains("output_compression")) __score8++; + if (__jsonProps.Contains("output_format")) __score8++; + if (__jsonProps.Contains("partial_images")) __score8++; + if (__jsonProps.Contains("quality")) __score8++; + if (__jsonProps.Contains("size")) __score8++; + if (__jsonProps.Contains("type")) __score8++; + var __score9 = 0; + if (__jsonProps.Contains("type")) __score9++; + var __score10 = 0; + if (__jsonProps.Contains("allowed_callers")) __score10++; + if (__jsonProps.Contains("environment")) __score10++; + if (__jsonProps.Contains("type")) __score10++; + var __score11 = 0; + if (__jsonProps.Contains("allowed_callers")) __score11++; + if (__jsonProps.Contains("async")) __score11++; + if (__jsonProps.Contains("defer_loading")) __score11++; + if (__jsonProps.Contains("description")) __score11++; + if (__jsonProps.Contains("format")) __score11++; + if (__jsonProps.Contains("name")) __score11++; + if (__jsonProps.Contains("type")) __score11++; + var __score12 = 0; + if (__jsonProps.Contains("description")) __score12++; + if (__jsonProps.Contains("name")) __score12++; + if (__jsonProps.Contains("tools")) __score12++; + if (__jsonProps.Contains("type")) __score12++; + var __score13 = 0; + if (__jsonProps.Contains("description")) __score13++; + if (__jsonProps.Contains("execution")) __score13++; + if (__jsonProps.Contains("parameters")) __score13++; + if (__jsonProps.Contains("type")) __score13++; + var __score14 = 0; + if (__jsonProps.Contains("search_content_types")) __score14++; + if (__jsonProps.Contains("search_context_size")) __score14++; + if (__jsonProps.Contains("type")) __score14++; + if (__jsonProps.Contains("user_location")) __score14++; + var __score15 = 0; + if (__jsonProps.Contains("allowed_callers")) __score15++; + if (__jsonProps.Contains("type")) __score15++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } + if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + + global::tryAGI.OpenAI.FunctionTool? function = default; + global::tryAGI.OpenAI.FileSearchTool? fileSearch = default; + global::tryAGI.OpenAI.ComputerTool? computer = default; + global::tryAGI.OpenAI.ComputerUsePreviewTool? computerUsePreview = default; + global::tryAGI.OpenAI.WebSearchTool? webSearch = default; + global::tryAGI.OpenAI.MCPTool? mcp = default; + global::tryAGI.OpenAI.CodeInterpreterTool? codeInterpreter = default; + global::tryAGI.OpenAI.ProgrammaticToolCallingParam? programmaticToolCalling = default; + global::tryAGI.OpenAI.ImageGenTool? imageGeneration = default; + global::tryAGI.OpenAI.LocalShellToolParam? localShell = default; + global::tryAGI.OpenAI.FunctionShellToolParam? shell = default; + global::tryAGI.OpenAI.CustomToolParam? custom = default; + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? @namespace = default; + global::tryAGI.OpenAI.ToolSearchToolParam? toolSearch = default; + global::tryAGI.OpenAI.WebSearchPreviewTool? webSearchPreview = default; + global::tryAGI.OpenAI.ApplyPatchToolParam? applyPatch = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 3) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 4) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 5) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 7) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam).Name}"); + programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 8) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 9) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 10) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 11) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 12) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 13) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 14) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 15) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); + computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); + computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam).Name}"); + programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); + localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); + shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); + webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && programmaticToolCalling == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::tryAGI.OpenAI.ToolSearchOutputTool( + function, + + fileSearch, + + computer, + + computerUsePreview, + + webSearch, + + mcp, + + codeInterpreter, + + programmaticToolCalling, + + imageGeneration, + + localShell, + + shell, + + custom, + + @namespace, + + toolSearch, + + webSearchPreview, + + applyPatch + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputTool value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); + } + else if (value.IsFileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); + } + else if (value.IsComputer) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); + } + else if (value.IsComputerUsePreview) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerUsePreview(), typeInfo); + } + else if (value.IsWebSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); + } + else if (value.IsMcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); + } + else if (value.IsCodeInterpreter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); + } + else if (value.IsProgrammaticToolCalling) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); + } + else if (value.IsImageGeneration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); + } + else if (value.IsLocalShell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShell(), typeInfo); + } + else if (value.IsShell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); + } + else if (value.IsNamespace) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); + } + else if (value.IsToolSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); + } + else if (value.IsWebSearchPreview) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchPreview(), typeInfo); + } + else if (value.IsApplyPatch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorType.g.cs new file mode 100644 index 000000000..8c6a49b3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..309f93227 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolSearchOutputToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs index 02bfcf38b..c8d526b8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs @@ -17,129 +17,30 @@ public class ToolsItem14JsonConverter : global::System.Text.Json.Serialization.J var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::tryAGI.OpenAI.LiveFunctionToolInputParam? function = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Function) + global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? function = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFunctionToolInputParam)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam)}"); function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.WebSearch) + global::tryAGI.OpenAI.CustomToolParam? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam)}"); - webSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.FileSearch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam)}"); - fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? codeInterpreter = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.CodeInterpreter) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam)}"); - codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveHostedShellToolInputParam? shell = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Shell) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam)}"); - shell = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? imageGeneration = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ImageGeneration) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam)}"); - imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveMCPToolInputParam? mcp = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Mcp) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveMCPToolInputParam)}"); - mcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveCustomToolInputParam? custom = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Custom) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCustomToolInputParam)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomToolParam)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::tryAGI.OpenAI.LiveNamespaceToolInputParam? @namespace = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Namespace) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam)}"); - @namespace = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveToolSearchToolInputParam? toolSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ToolSearch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam)}"); - toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? programmaticToolCalling = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ProgrammaticToolCalling) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam)}"); - programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveComputerToolInputParam? computer = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Computer) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveComputerToolInputParam)}"); - computer = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? applyPatch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ApplyPatch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam)}"); - applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } var __value = new global::tryAGI.OpenAI.ToolsItem14( discriminator?.Type, function, - webSearch, - - fileSearch, - - codeInterpreter, - - shell, - - imageGeneration, - - mcp, - - custom, - - @namespace, - - toolSearch, - - programmaticToolCalling, - - computer, - - applyPatch + custom ); return __value; @@ -156,82 +57,16 @@ public override void Write( if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } - else if (value.IsWebSearch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); - } - else if (value.IsFileSearch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); - } - else if (value.IsCodeInterpreter) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); - } - else if (value.IsShell) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); - } - else if (value.IsImageGeneration) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); - } - else if (value.IsMcp) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); - } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); } - else if (value.IsNamespace) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); - } - else if (value.IsToolSearch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); - } - else if (value.IsProgrammaticToolCalling) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); - } - else if (value.IsComputer) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); - } - else if (value.IsApplyPatch) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs index 2bb27e0a7..a22b0f86f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs @@ -17,96 +17,96 @@ public class ToolsItem15JsonConverter : global::System.Text.Json.Serialization.J var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.LiveFunctionToolInputParam? function = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Function) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFunctionToolInputParam)}"); function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.WebSearch) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.WebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam)}"); webSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.FileSearch) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam)}"); fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? codeInterpreter = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.CodeInterpreter) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam)}"); codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveHostedShellToolInputParam? shell = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Shell) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Shell) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam)}"); shell = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? imageGeneration = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ImageGeneration) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ImageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam)}"); imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveMCPToolInputParam? mcp = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Mcp) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Mcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveMCPToolInputParam)}"); mcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveCustomToolInputParam? custom = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Custom) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Custom) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCustomToolInputParam)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveNamespaceToolInputParam? @namespace = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Namespace) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Namespace) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam)}"); @namespace = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveToolSearchToolInputParam? toolSearch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ToolSearch) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam)}"); toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? programmaticToolCalling = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ProgrammaticToolCalling) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam)}"); programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveComputerToolInputParam? computer = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Computer) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.Computer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveComputerToolInputParam)}"); computer = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? applyPatch = default; - if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ApplyPatch) + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType.ApplyPatch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam)}"); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs index d379164e2..fa0f6609f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs @@ -17,30 +17,129 @@ public class ToolsItem16JsonConverter : global::System.Text.Json.Serialization.J var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::tryAGI.OpenAI.BetaFunctionToolParam? function = default; - if (discriminator?.Type == global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType.Function) + global::tryAGI.OpenAI.LiveFunctionToolInputParam? function = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Function) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaFunctionToolParam)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFunctionToolInputParam)}"); function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::tryAGI.OpenAI.BetaCustomToolParam? custom = default; - if (discriminator?.Type == global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType.Custom) + global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.WebSearch) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaCustomToolParam)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam)}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.FileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam)}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? codeInterpreter = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.CodeInterpreter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam)}"); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveHostedShellToolInputParam? shell = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Shell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam)}"); + shell = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? imageGeneration = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ImageGeneration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam)}"); + imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveMCPToolInputParam? mcp = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Mcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveMCPToolInputParam)}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveCustomToolInputParam? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveCustomToolInputParam)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::tryAGI.OpenAI.LiveNamespaceToolInputParam? @namespace = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Namespace) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam)}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveToolSearchToolInputParam? toolSearch = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ToolSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam)}"); + toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? programmaticToolCalling = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ProgrammaticToolCalling) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam)}"); + programmaticToolCalling = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveComputerToolInputParam? computer = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.Computer) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveComputerToolInputParam)}"); + computer = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? applyPatch = default; + if (discriminator?.Type == global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType.ApplyPatch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam)}"); + applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::tryAGI.OpenAI.ToolsItem16( discriminator?.Type, function, - custom + webSearch, + + fileSearch, + + codeInterpreter, + + shell, + + imageGeneration, + + mcp, + + custom, + + @namespace, + + toolSearch, + + programmaticToolCalling, + + computer, + + applyPatch ); return __value; @@ -57,16 +156,82 @@ public override void Write( if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolParam).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } + else if (value.IsWebSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); + } + else if (value.IsFileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); + } + else if (value.IsCodeInterpreter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); + } + else if (value.IsShell) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); + } + else if (value.IsImageGeneration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); + } + else if (value.IsMcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); + } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); } + else if (value.IsNamespace) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); + } + else if (value.IsToolSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); + } + else if (value.IsProgrammaticToolCalling) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); + } + else if (value.IsComputer) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); + } + else if (value.IsApplyPatch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem17.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem17.g.cs new file mode 100644 index 000000000..f8715f74d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem17.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ToolsItem17JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolsItem17 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.BetaFunctionToolParam? function = default; + if (discriminator?.Type == global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType.Function) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaFunctionToolParam)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.BetaCustomToolParam? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaCustomToolParam)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.ToolsItem17( + discriminator?.Type, + function, + + custom + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolsItem17 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem18.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem18.g.cs new file mode 100644 index 000000000..e4eac6216 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem18.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ToolsItem18JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolsItem18 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? function = default; + if (discriminator?.Type == global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::tryAGI.OpenAI.BetaCustomToolParam? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.BetaCustomToolParam)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::tryAGI.OpenAI.ToolsItem18( + discriminator?.Type, + function, + + custom + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolsItem18 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs index 55d3bd960..6779b28a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -3003,6 +3003,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceTypesType), TypeInfoPropertyName = "ToolChoiceTypesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputTool), TypeInfoPropertyName = "ToolSearchOutputTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType), TypeInfoPropertyName = "ToolSearchOutputToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType), TypeInfoPropertyName = "TranscriptTextDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob))] @@ -3139,10 +3143,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchSourceType), TypeInfoPropertyName = "WebSearchActionSearchSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type), TypeInfoPropertyName = "WebSearchApproximateLocationWebSearchApproximateLocation1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolType), TypeInfoPropertyName = "WebSearchToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolFilters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize), TypeInfoPropertyName = "WebSearchToolSearchContextSize2")] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3194,6 +3194,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type), TypeInfoPropertyName = "WebSearchApproximateLocationWebSearchApproximateLocation1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolType), TypeInfoPropertyName = "WebSearchToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolSearchContextSize), TypeInfoPropertyName = "WebSearchToolSearchContextSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallType), TypeInfoPropertyName = "WebSearchToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchCallStatus), TypeInfoPropertyName = "WebSearchCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] @@ -3553,7 +3557,15 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationParamType), TypeInfoPropertyName = "ContainerFileCitationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType), TypeInfoPropertyName = "ToolSearchCallItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType), TypeInfoPropertyName = "ToolSearchOutputFunctionToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType), TypeInfoPropertyName = "ToolSearchOutputNamespaceToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem14), TypeInfoPropertyName = "ToolsItem142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType), TypeInfoPropertyName = "ToolSearchOutputNamespaceToolParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType), TypeInfoPropertyName = "ToolSearchOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdditionalToolsItemParamType), TypeInfoPropertyName = "AdditionalToolsItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdditionalToolsItemParamRole), TypeInfoPropertyName = "AdditionalToolsItemParamRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParamType), TypeInfoPropertyName = "CompactionSummaryItemParamType2")] @@ -3658,18 +3670,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParamType), TypeInfoPropertyName = "LiveToolSearchToolInputParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParamType), TypeInfoPropertyName = "LiveProgrammaticToolInputParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParamType), TypeInfoPropertyName = "LiveComputerToolInputParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParamType), TypeInfoPropertyName = "LiveApplyPatchToolInputParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveToolChoiceEnum), TypeInfoPropertyName = "LiveToolChoiceEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem14), TypeInfoPropertyName = "ToolsItem142")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType), TypeInfoPropertyName = "LiveResponsesDelegationSettingsInputParamToolDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfLiveToolChoiceEnumObject2")] internal sealed partial class SourceGenerationContextChunk6 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3721,6 +3721,18 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParamType), TypeInfoPropertyName = "LiveProgrammaticToolInputParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParamType), TypeInfoPropertyName = "LiveComputerToolInputParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParamType), TypeInfoPropertyName = "LiveApplyPatchToolInputParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveToolChoiceEnum), TypeInfoPropertyName = "LiveToolChoiceEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem15), TypeInfoPropertyName = "ToolsItem152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType), TypeInfoPropertyName = "LiveResponsesDelegationSettingsInputParamToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfLiveToolChoiceEnumObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParamType), TypeInfoPropertyName = "LiveResponsesDelegationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DelegationVariant1Discriminator))] @@ -3757,8 +3769,8 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents), TypeInfoPropertyName = "LiveDataChannelConfigParamAllowedServerEvents2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem15), TypeInfoPropertyName = "ToolsItem152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem16), TypeInfoPropertyName = "ToolsItem162")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType), TypeInfoPropertyName = "LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType), TypeInfoPropertyName = "LiveResponsesDelegationUpdateParamType2")] @@ -4026,6 +4038,61 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResourceObject), TypeInfoPropertyName = "ThreadListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputTextType), TypeInfoPropertyName = "DecisionInputTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageDetailParam), TypeInfoPropertyName = "ImageDetailParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputImageType), TypeInfoPropertyName = "DecisionInputImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContentPartsItem), TypeInfoPropertyName = "DecisionInputContentPartsItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType), TypeInfoPropertyName = "DecisionInputContentPartDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContent), TypeInfoPropertyName = "DecisionInputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputMessageRole), TypeInfoPropertyName = "DecisionInputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputMessageType), TypeInfoPropertyName = "DecisionInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInput), TypeInfoPropertyName = "DecisionInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputVariant2Item), TypeInfoPropertyName = "DecisionInputVariant2Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType), TypeInfoPropertyName = "DecisionInputVariant2ItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamPredicate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamPredicateType), TypeInfoPropertyName = "QuestionParamPredicateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceValueParam), TypeInfoPropertyName = "ChoiceValueParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceOptionParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamChoiceType), TypeInfoPropertyName = "QuestionParamChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScoreLevelParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamScore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamScoreType), TypeInfoPropertyName = "QuestionParamScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParam), TypeInfoPropertyName = "QuestionParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType), TypeInfoPropertyName = "QuestionParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourcePredicate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType), TypeInfoPropertyName = "AnswerResourcePredicateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceValueResource), TypeInfoPropertyName = "ChoiceValueResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceProbabilityResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType), TypeInfoPropertyName = "AnswerResourceChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScoreProbabilityResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceScore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceScoreType), TypeInfoPropertyName = "AnswerResourceScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceRefusal))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType), TypeInfoPropertyName = "AnswerResourceRefusalType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResource), TypeInfoPropertyName = "AnswerResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType), TypeInfoPropertyName = "AnswerResourceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTokensDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTokensDetailsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsageResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentTypeResource), TypeInfoPropertyName = "EnvironmentTypeResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentStatusResource), TypeInfoPropertyName = "EnvironmentStatusResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginResourceInline))] @@ -4114,6 +4181,57 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemResourceType), TypeInfoPropertyName = "FunctionCallOutputItemResourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AgentMessageItemResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AgentMessageItemResourceType), TypeInfoPropertyName = "AgentMessageItemResourceType2")] + internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpCallItemResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpCallItemResourceType), TypeInfoPropertyName = "McpCallItemResourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotResource))] @@ -4179,59 +4297,8 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TurnStatusResource), TypeInfoPropertyName = "TurnStatusResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionTurnErrorCodeResource), TypeInfoPropertyName = "SessionTurnErrorCodeResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionTurnErrorResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTokensDetailsResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTokensDetailsResource))] - internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTokensDetailsResource2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTokensDetailsResource2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenUsageResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TurnResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionTurnListResource))] @@ -4622,8 +4689,60 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VaultListResourceObject), TypeInfoPropertyName = "VaultListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVaultParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVaultParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVaultResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVaultResourceObject), TypeInfoPropertyName = "DeletedVaultResourceObject2")] + internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType), TypeInfoPropertyName = "McpOauthTokenEndpointAuthResourceNoneType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic))] @@ -4692,57 +4811,6 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateMcpOauthRefreshParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType), TypeInfoPropertyName = "RotateVaultCredentialAuthParamMcpOauthType2")] - internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType), TypeInfoPropertyName = "RotateVaultCredentialAuthParamStaticBearerType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable))] @@ -4943,8 +5011,8 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchExecutionType), TypeInfoPropertyName = "BetaToolSearchExecutionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaEmptyModelParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamType), TypeInfoPropertyName = "BetaNamespaceToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem16), TypeInfoPropertyName = "ToolsItem162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem17), TypeInfoPropertyName = "ToolsItem172")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType), TypeInfoPropertyName = "BetaNamespaceToolParamToolDiscriminatorType2")] @@ -5137,6 +5205,57 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPListToolsType), TypeInfoPropertyName = "BetaMCPListToolsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPListToolsTool))] + internal sealed partial class SourceGenerationContextChunk9 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType), TypeInfoPropertyName = "BetaApplyPatchToolCallOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam), TypeInfoPropertyName = "BetaApplyPatchCallOutputStatusParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType), TypeInfoPropertyName = "BetaApplyPatchToolCallItemParamType2")] @@ -5203,59 +5322,20 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType), TypeInfoPropertyName = "BetaAdditionalToolsItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole), TypeInfoPropertyName = "BetaAdditionalToolsItemParamRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType), TypeInfoPropertyName = "BetaToolSearchOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputTool), TypeInfoPropertyName = "BetaToolSearchOutputTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionCallItemStatus), TypeInfoPropertyName = "BetaFunctionCallItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType), TypeInfoPropertyName = "BetaToolSearchOutputToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType), TypeInfoPropertyName = "BetaToolSearchOutputNamespaceToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem18), TypeInfoPropertyName = "ToolsItem182")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType), TypeInfoPropertyName = "BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType), TypeInfoPropertyName = "BetaToolSearchOutputFunctionToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParamType), TypeInfoPropertyName = "BetaToolSearchCallItemParamType2")] - internal sealed partial class SourceGenerationContextChunk9 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType), TypeInfoPropertyName = "BetaMultiAgentCallOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMultiAgentAction1), TypeInfoPropertyName = "BetaMultiAgentAction12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -5638,6 +5718,57 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType), TypeInfoPropertyName = "BetaResponseOutputItemAddedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseInProgressEvent))] + internal sealed partial class SourceGenerationContextChunk10 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseInProgressEventType), TypeInfoPropertyName = "BetaResponseInProgressEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType), TypeInfoPropertyName = "BetaResponseShellCallOutputContentDoneStreamingEventType2")] @@ -5718,57 +5849,6 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType), TypeInfoPropertyName = "BetaResponseSteerInputItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaUserMessageItemParamType), TypeInfoPropertyName = "BetaUserMessageItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaUserMessageItemParamRole), TypeInfoPropertyName = "BetaUserMessageItemParamRole2")] - internal sealed partial class SourceGenerationContextChunk10 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, string>), TypeInfoPropertyName = "OneOfIListContentVariant1Item2String2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentVariant1Item2), TypeInfoPropertyName = "ContentVariant1Item22")] @@ -6153,6 +6233,57 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionModerationErrorType?), TypeInfoPropertyName = "NullableChatCompletionModerationErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionModerationResultsType?), TypeInfoPropertyName = "NullableChatCompletionModerationResultsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType?), TypeInfoPropertyName = "NullableChatCompletionNamedToolChoiceType2")] + internal sealed partial class SourceGenerationContextChunk11 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType?), TypeInfoPropertyName = "NullableChatCompletionNamedToolChoiceCustomType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart?), TypeInfoPropertyName = "NullableChatCompletionRequestAssistantMessageContentPart2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole?), TypeInfoPropertyName = "NullableChatCompletionRequestAssistantMessageRole2")] @@ -6235,57 +6366,6 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType?), TypeInfoPropertyName = "NullableCreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType?), TypeInfoPropertyName = "NullableCreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestEndpoint?), TypeInfoPropertyName = "NullableCreateBatchRequestEndpoint2")] - internal sealed partial class SourceGenerationContextChunk11 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow?), TypeInfoPropertyName = "NullableCreateBatchRequestCompletionWindow2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequest?), TypeInfoPropertyName = "NullableCreateChatCompletionRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties?), TypeInfoPropertyName = "NullableCreateModelResponseProperties2")] @@ -6704,6 +6784,57 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveServerEvent?), TypeInfoPropertyName = "NullableLiveServerEvent2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSIPTransportType?), TypeInfoPropertyName = "NullableLiveSIPTransportType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSIPTrunkAuthType?), TypeInfoPropertyName = "NullableLiveSIPTrunkAuthType2")] + internal sealed partial class SourceGenerationContextChunk12 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveServerEvent2?), TypeInfoPropertyName = "NullableLiveServerEvent22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Transport?), TypeInfoPropertyName = "NullableTransport2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSessionCreateRequestTransportDiscriminatorType?), TypeInfoPropertyName = "NullableLiveSessionCreateRequestTransportDiscriminatorType2")] @@ -6790,57 +6921,6 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertInterval?), TypeInfoPropertyName = "NullableOrganizationSpendAlertInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendAlertDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject?), TypeInfoPropertyName = "NullableOrganizationSpendAlertListResourceObject2")] - internal sealed partial class SourceGenerationContextChunk12 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType?), TypeInfoPropertyName = "NullableOtherChunkingStrategyResponseParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputAudioType?), TypeInfoPropertyName = "NullableOutputAudioType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContentDiscriminatorType?), TypeInfoPropertyName = "NullableOutputContentDiscriminatorType2")] @@ -7221,6 +7301,57 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceParam?), TypeInfoPropertyName = "NullableToolChoiceParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseQueuedEventType?), TypeInfoPropertyName = "NullableResponseQueuedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType?), TypeInfoPropertyName = "NullableResponseReasoningSummaryPartAddedEventType2")] + internal sealed partial class SourceGenerationContextChunk13 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType?), TypeInfoPropertyName = "NullableResponseReasoningSummaryPartAddedEventPartType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType?), TypeInfoPropertyName = "NullableResponseReasoningSummaryPartDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventStatus?), TypeInfoPropertyName = "NullableResponseReasoningSummaryPartDoneEventStatus2")] @@ -7301,57 +7432,6 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseReasoningSummaryTextDoneEventResponsesServerEventResponseReasoningSummaryTextWsDone22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseReasoningTextDeltaEventResponsesServerEventResponseReasoningTextWsDelta22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseReasoningTextDoneEventResponsesServerEventResponseReasoningTextWsDone22")] - internal sealed partial class SourceGenerationContextChunk13 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseRefusalDeltaEventResponsesServerEventResponseRefusalWsDelta22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseRefusalDoneEventResponsesServerEventResponseRefusalWsDone22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfResponseTextDeltaEventResponsesServerEventResponseTextWsDelta22")] @@ -7442,6 +7522,8 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunctionType?), TypeInfoPropertyName = "NullableToolChoiceFunctionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCPType?), TypeInfoPropertyName = "NullableToolChoiceMCPType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceTypesType?), TypeInfoPropertyName = "NullableToolChoiceTypesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputTool?), TypeInfoPropertyName = "NullableToolSearchOutputTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType?), TypeInfoPropertyName = "NullableToolSearchOutputToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType?), TypeInfoPropertyName = "NullableTranscriptTextDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEventType?), TypeInfoPropertyName = "NullableTranscriptTextDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEventType?), TypeInfoPropertyName = "NullableTranscriptTextSegmentEventType2")] @@ -7728,12 +7810,67 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationParamType?), TypeInfoPropertyName = "NullableUrlCitationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationParamType?), TypeInfoPropertyName = "NullableContainerFileCitationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType?), TypeInfoPropertyName = "NullableToolSearchCallItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType?), TypeInfoPropertyName = "NullableToolSearchOutputFunctionToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType?), TypeInfoPropertyName = "NullableToolSearchOutputNamespaceToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem14?), TypeInfoPropertyName = "NullableToolsItem142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType?), TypeInfoPropertyName = "NullableToolSearchOutputNamespaceToolParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType?), TypeInfoPropertyName = "NullableToolSearchOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdditionalToolsItemParamType?), TypeInfoPropertyName = "NullableAdditionalToolsItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdditionalToolsItemParamRole?), TypeInfoPropertyName = "NullableAdditionalToolsItemParamRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParamType?), TypeInfoPropertyName = "NullableCompactionSummaryItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemStatus?), TypeInfoPropertyName = "NullableFunctionShellCallItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamType?), TypeInfoPropertyName = "NullableFunctionShellCallItemParamType2")] + internal sealed partial class SourceGenerationContextChunk14 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType?), TypeInfoPropertyName = "NullableFunctionShellCallOutputTimeoutOutcomeParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType?), TypeInfoPropertyName = "NullableFunctionShellCallOutputExitOutcomeParamType2")] @@ -7791,7 +7928,7 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveComputerToolInputParamType?), TypeInfoPropertyName = "NullableLiveComputerToolInputParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParamType?), TypeInfoPropertyName = "NullableLiveApplyPatchToolInputParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveToolChoiceEnum?), TypeInfoPropertyName = "NullableLiveToolChoiceEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem14?), TypeInfoPropertyName = "NullableToolsItem142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem15?), TypeInfoPropertyName = "NullableToolsItem152")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType?), TypeInfoPropertyName = "NullableLiveResponsesDelegationSettingsInputParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfLiveToolChoiceEnumObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParamType?), TypeInfoPropertyName = "NullableLiveResponsesDelegationParamType2")] @@ -7814,63 +7951,12 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents?), TypeInfoPropertyName = "NullableLiveDataChannelConfigParamAllowedClientEvents2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>?), TypeInfoPropertyName = "NullableOneOfLiveDataChannelConfigParamAllowedServerEventsIListLiveAllowedServerEventParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents?), TypeInfoPropertyName = "NullableLiveDataChannelConfigParamAllowedServerEvents2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem15?), TypeInfoPropertyName = "NullableToolsItem152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem16?), TypeInfoPropertyName = "NullableToolsItem162")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType?), TypeInfoPropertyName = "NullableLiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType?), TypeInfoPropertyName = "NullableLiveResponsesDelegationUpdateParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType?), TypeInfoPropertyName = "NullableAwsExternalStorageProviderResponseType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType?), TypeInfoPropertyName = "NullableAzureExternalStorageProviderResponseType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType?), TypeInfoPropertyName = "NullableGcpExternalStorageProviderResponseType2")] - internal sealed partial class SourceGenerationContextChunk14 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProviderDiscriminatorType?), TypeInfoPropertyName = "NullableProviderDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType?), TypeInfoPropertyName = "NullableSpecificProgrammaticToolCallingParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParamType?), TypeInfoPropertyName = "NullableSpecificApplyPatchParamType2")] @@ -8004,6 +8090,30 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType?), TypeInfoPropertyName = "NullableThreadResourceStatusDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResourceObject?), TypeInfoPropertyName = "NullableDeletedThreadResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResourceObject?), TypeInfoPropertyName = "NullableThreadListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputTextType?), TypeInfoPropertyName = "NullableDecisionInputTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageDetailParam?), TypeInfoPropertyName = "NullableImageDetailParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputImageType?), TypeInfoPropertyName = "NullableDecisionInputImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContentPartsItem?), TypeInfoPropertyName = "NullableDecisionInputContentPartsItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType?), TypeInfoPropertyName = "NullableDecisionInputContentPartDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputContent?), TypeInfoPropertyName = "NullableDecisionInputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputMessageRole?), TypeInfoPropertyName = "NullableDecisionInputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputMessageType?), TypeInfoPropertyName = "NullableDecisionInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInput?), TypeInfoPropertyName = "NullableDecisionInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputVariant2Item?), TypeInfoPropertyName = "NullableDecisionInputVariant2Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType?), TypeInfoPropertyName = "NullableDecisionInputVariant2ItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamPredicateType?), TypeInfoPropertyName = "NullableQuestionParamPredicateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceValueParam?), TypeInfoPropertyName = "NullableChoiceValueParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamChoiceType?), TypeInfoPropertyName = "NullableQuestionParamChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamScoreType?), TypeInfoPropertyName = "NullableQuestionParamScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParam?), TypeInfoPropertyName = "NullableQuestionParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType?), TypeInfoPropertyName = "NullableQuestionParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType?), TypeInfoPropertyName = "NullableAnswerResourcePredicateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChoiceValueResource?), TypeInfoPropertyName = "NullableChoiceValueResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType?), TypeInfoPropertyName = "NullableAnswerResourceChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceScoreType?), TypeInfoPropertyName = "NullableAnswerResourceScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType?), TypeInfoPropertyName = "NullableAnswerResourceRefusalType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResource?), TypeInfoPropertyName = "NullableAnswerResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType?), TypeInfoPropertyName = "NullableAnswerResourceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentTypeResource?), TypeInfoPropertyName = "NullableEnvironmentTypeResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentStatusResource?), TypeInfoPropertyName = "NullableEnvironmentStatusResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginResourceInlineType?), TypeInfoPropertyName = "NullableHostedPluginResourceInlineType2")] @@ -8221,6 +8331,57 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionTurnCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionTurnInProgressType2")] + internal sealed partial class SourceGenerationContextChunk15 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionTurnCompletedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionTurnFailedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType?), TypeInfoPropertyName = "NullableSessionEventAgentSessionTurnCancelledType2")] @@ -8331,57 +8492,6 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType?), TypeInfoPropertyName = "NullableLiveSessionAudioFormatPCMParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType?), TypeInfoPropertyName = "NullableLiveSessionAudioFormatPCMUParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType?), TypeInfoPropertyName = "NullableLiveSessionAudioFormatPCMAParamType2")] - internal sealed partial class SourceGenerationContextChunk15 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveAudioFormat?), TypeInfoPropertyName = "NullableLiveAudioFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType?), TypeInfoPropertyName = "NullableLiveAudioFormatDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableLiveSessionCreateParamsDelegationVariant1DiscriminatorType2")] @@ -8475,7 +8585,7 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParamType?), TypeInfoPropertyName = "NullableBetaToolSearchToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchExecutionType?), TypeInfoPropertyName = "NullableBetaToolSearchExecutionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamType?), TypeInfoPropertyName = "NullableBetaNamespaceToolParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem16?), TypeInfoPropertyName = "NullableToolsItem162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem17?), TypeInfoPropertyName = "NullableToolsItem172")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType?), TypeInfoPropertyName = "NullableBetaNamespaceToolParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolParamType?), TypeInfoPropertyName = "NullableBetaCustomToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Format3?), TypeInfoPropertyName = "NullableFormat32")] @@ -8612,7 +8722,13 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType?), TypeInfoPropertyName = "NullableBetaAdditionalToolsItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole?), TypeInfoPropertyName = "NullableBetaAdditionalToolsItemParamRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType?), TypeInfoPropertyName = "NullableBetaToolSearchOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputTool?), TypeInfoPropertyName = "NullableBetaToolSearchOutputTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionCallItemStatus?), TypeInfoPropertyName = "NullableBetaFunctionCallItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType?), TypeInfoPropertyName = "NullableBetaToolSearchOutputToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType?), TypeInfoPropertyName = "NullableBetaToolSearchOutputNamespaceToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem18?), TypeInfoPropertyName = "NullableToolsItem182")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType?), TypeInfoPropertyName = "NullableBetaToolSearchOutputNamespaceToolParamToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType?), TypeInfoPropertyName = "NullableBetaToolSearchOutputFunctionToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParamType?), TypeInfoPropertyName = "NullableBetaToolSearchCallItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType?), TypeInfoPropertyName = "NullableBetaMultiAgentCallOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMultiAgentAction1?), TypeInfoPropertyName = "NullableBetaMultiAgentAction12")] @@ -8728,6 +8844,57 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallType?), TypeInfoPropertyName = "NullableBetaFunctionShellCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallStatus?), TypeInfoPropertyName = "NullableBetaFunctionShellCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableBetaFunctionShellCallEnvironmentVariant1DiscriminatorType2")] + internal sealed partial class SourceGenerationContextChunk16 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaContainerReferenceResourceType?), TypeInfoPropertyName = "NullableBetaContainerReferenceResourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType?), TypeInfoPropertyName = "NullableBetaLocalEnvironmentResourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCompactionBodyType?), TypeInfoPropertyName = "NullableBetaCompactionBodyType2")] @@ -8846,57 +9013,6 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType?), TypeInfoPropertyName = "NullableBetaResponseCodeInterpreterCallCodeDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType?), TypeInfoPropertyName = "NullableBetaResponseAudioTranscriptDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType?), TypeInfoPropertyName = "NullableBetaResponseAudioTranscriptDeltaEventType2")] - internal sealed partial class SourceGenerationContextChunk16 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseAudioDoneEventType?), TypeInfoPropertyName = "NullableBetaResponseAudioDoneEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType?), TypeInfoPropertyName = "NullableBetaResponseAudioDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseIncompleteEventType?), TypeInfoPropertyName = "NullableBetaResponseIncompleteEventType2")] @@ -9247,6 +9363,57 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + internal sealed partial class SourceGenerationContextChunk17 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9329,16 +9496,18 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9353,6 +9522,14 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9365,57 +9542,6 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class SourceGenerationContextChunk17 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_aa2fa50684e533e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9f8e385d0d57d1e8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_6800b692cbb762f1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_0db8095b248d3316")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_95e54e44510b0009")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_d5b932e79734fe15")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_1c153a37bcc8cc3b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_eb95b0359d773380")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_acdfa0e7d1e3ea10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_2dfbd10a45d64018")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_8c499820eaa0ad81")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_88d857ee171edc8e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_d72fd0d7007510fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_9c1ade5264e2d427")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>?), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_2c308d3a0e1a6420")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_4cfbf8c2a0aac51c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_0c2e57e4e5ae27ff")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "MessageContentRefusalObject_76182275c0945058")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEvent_a725c754433a20c8")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_e709669a9d6096a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObject_13a1058b9149fee5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "LiveSessionClosedReasonVariant5_b88f2527c0e5b7fe")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2_7adc5ef6e7f9329b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2_a3069e343df19e94")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2_f592d0e936020169")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2_a2e9595bbb80a363")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2_431c77466c8c749b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2_5d3fa966457ed4f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9449,7 +9575,7 @@ internal sealed partial class SourceGenerationContextChunk17 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9462,6 +9588,8 @@ internal sealed partial class SourceGenerationContextChunk17 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -9659,6 +9787,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResultsItemJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter()); @@ -9685,17 +9814,18 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutcomeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputVariant2ItemJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem14JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NetworkPolicyVariant1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SkillsVariant1ItemJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant14JsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem14JsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem15JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DelegationVariant1JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.LiveInitialItemJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem15JsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem16JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProviderJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningModeEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PromptCacheDiagnosticsJsonConverter()); @@ -9714,6 +9844,14 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationsItem3JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadItemJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.StatusJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DecisionInputContentPartsItemJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DecisionInputContentJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DecisionInputJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChoiceValueParamJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.QuestionParamJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChoiceValueResourceJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnswerResourceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.HostedPluginResourceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.HostedSkillResourceJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileResourceJsonConverter()); @@ -9773,7 +9911,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.BetaReasoningModeEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.BetaTextResponseFormatConfigurationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.BetaToolJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem16JsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem17JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.Format3JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant15JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy4JsonConverter()); @@ -9791,6 +9929,8 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.BetaFunctionShellCallOutputOutcomeParamJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant16JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputsVariant1Item2JsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolsItem18JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationsItem4JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContentItem6JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputVariant2Item2JsonConverter()); @@ -13632,6 +13772,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ToolChoiceTypesType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType) || typeToConvert == typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType?) @@ -14676,6 +14820,18 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType) || typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType?) @@ -15448,6 +15604,70 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ThreadListResourceObject?) + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputTextType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputTextType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ImageDetailParam) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ImageDetailParam?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputImageType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputImageType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageRole) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageRole?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamPredicateType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamPredicateType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamChoiceType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamChoiceType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamScoreType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamScoreType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceScoreType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceScoreType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.EnvironmentTypeResource) || typeToConvert == typeof(global::tryAGI.OpenAI.EnvironmentTypeResource?) @@ -17388,6 +17608,22 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.BetaFunctionCallItemStatus?) + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParamType) || typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParamType?) @@ -27271,6 +27507,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEventType)) { return new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeJsonConverter(); @@ -29881,6 +30127,36 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType)) { return new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter(); @@ -31811,6 +32087,166 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputTextType)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputTextType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ImageDetailParam)) + { + return new global::tryAGI.OpenAI.JsonConverters.ImageDetailParamJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ImageDetailParam?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ImageDetailParamNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputImageType)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputImageType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageRole)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageRole?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageType)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputMessageType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamPredicateType)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamPredicateType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamChoiceType)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamChoiceType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamScoreType)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamScoreType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.QuestionParamDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourcePredicateType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceChoiceType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceScoreType)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceScoreType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceRefusalType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.EnvironmentTypeResource)) { return new global::tryAGI.OpenAI.JsonConverters.EnvironmentTypeResourceJsonConverter(); @@ -36661,6 +37097,46 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.BetaFunctionCallItemStatusNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParamType)) { return new global::tryAGI.OpenAI.JsonConverters.BetaToolSearchCallItemParamTypeJsonConverter(); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs index 5689e3299..b85e5f9b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -10477,11023 +10477,11343 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2611 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputTool? Type2611 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2612 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? Type2612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2613 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator? Type2613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2614 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType? Type2614 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2615 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2616 { get; set; } + public global::System.Collections.Generic.IList? Type2616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2617 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2618 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2619 { get; set; } + public global::System.Collections.Generic.IList? Type2619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2620 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2621 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2622 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2623 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2624 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2625 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2626 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2627 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2628 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type2628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2629 { get; set; } + public global::tryAGI.OpenAI.UpdateGroupBody? Type2629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2630 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2631 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2632 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2633 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2634 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2635 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2636 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2637 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2638 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2639 { get; set; } + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2640 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2641 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2642 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2643 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2644 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2645 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2646 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2647 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2648 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultApiSource? Type2649 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2650 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2651 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2652 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2653 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultApiSource? Type2653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2654 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2655 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2656 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2657 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2658 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2659 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2660 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2660 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2661 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2662 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2663 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2664 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem? Type2665 { get; set; } + public global::System.Collections.Generic.IList? Type2665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2666 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2667 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2668 { get; set; } + public global::System.Collections.Generic.IList? Type2668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2669 { get; set; } + public global::tryAGI.OpenAI.ResultsItem? Type2669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2670 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResultApiSource? Type2671 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2672 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2673 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2674 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1? Type2675 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResultApiSource? Type2675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1Object? Type2676 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjects? Type2677 { get; set; } + public global::tryAGI.OpenAI.User? Type2677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsObject? Type2678 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2679 { get; set; } + public global::tryAGI.OpenAI.UserUser1? Type2679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsDataItem? Type2680 { get; set; } + public global::tryAGI.OpenAI.UserUser1Object? Type2680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2681 { get; set; } + public global::tryAGI.OpenAI.UserProjects? Type2681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2682 { get; set; } + public global::tryAGI.OpenAI.UserProjectsObject? Type2682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResource? Type2683 { get; set; } + public global::System.Collections.Generic.IList? Type2683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2684 { get; set; } + public global::tryAGI.OpenAI.UserProjectsDataItem? Type2684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2685 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2686 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2687 { get; set; } + public global::tryAGI.OpenAI.UserListResource? Type2687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2688 { get; set; } + public global::tryAGI.OpenAI.UserListResourceObject? Type2688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2689 { get; set; } + public global::System.Collections.Generic.IList? Type2689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2690 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2691 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type2692 { get; set; } + public global::System.Collections.Generic.IList? Type2692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2693 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignment? Type2693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2694 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2695 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2696 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type2696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2697 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2698 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2699 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2700 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2701 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2702 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2703 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2704 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2705 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2706 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2707 { get; set; } + public global::System.Collections.Generic.IList? Type2707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2708 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2709 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2710 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2711 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2712 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2713 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2714 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2715 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2716 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2717 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2718 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2719 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2720 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2721 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2722 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2723 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2723 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2724 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2725 { get; set; } + public global::System.Collections.Generic.IList? Type2725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2726 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2727 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2728 { get; set; } + public global::System.Collections.Generic.IList? Type2728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2729 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2730 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2731 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2732 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2733 { get; set; } + public global::System.Collections.Generic.IList? Type2733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResource? Type2734 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResource? Type2734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2735 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceType? Type2736 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2737 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2738 { get; set; } + public global::tryAGI.OpenAI.VoiceResource? Type2738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2739 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceObject? Type2739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2740 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceType? Type2740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2741 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type2741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2742 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2742 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2743 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2744 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2745 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2746 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2747 { get; set; } + public global::System.Collections.Generic.IList? Type2747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2748 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters? Type2749 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2750 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2751 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallStatus? Type2752 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type2752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2753 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters? Type2753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2754 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2755 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionActionRequired? Type2756 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallStatus? Type2756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionEnvelope? Type2757 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionActionRequiredVariant2? Type2758 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionActionRequiredVariant2Type? Type2759 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionActionRequiredPayloadResource? Type2760 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionActionRequired? Type2760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionCreated? Type2761 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionEnvelope? Type2761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionCreatedVariant2? Type2762 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionActionRequiredVariant2? Type2762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionCreatedVariant2Type? Type2763 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionActionRequiredVariant2Type? Type2763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionCreatedPayloadResource? Type2764 { get; set; } + public global::tryAGI.OpenAI.AgentSessionActionRequiredPayloadResource? Type2764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionEnvelopeObject? Type2765 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionCreated? Type2765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionFailed? Type2766 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionCreatedVariant2? Type2766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionFailedVariant2? Type2767 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionCreatedVariant2Type? Type2767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionFailedVariant2Type? Type2768 { get; set; } + public global::tryAGI.OpenAI.AgentSessionCreatedPayloadResource? Type2768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionEnvironmentPayloadResource? Type2769 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionEnvelopeObject? Type2769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionIdle? Type2770 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionFailed? Type2770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionIdleVariant2? Type2771 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionFailedVariant2? Type2771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionIdleVariant2Type? Type2772 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionFailedVariant2Type? Type2772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionInProgress? Type2773 { get; set; } + public global::tryAGI.OpenAI.AgentSessionEnvironmentPayloadResource? Type2773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionInProgressVariant2? Type2774 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionIdle? Type2774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookAgentSessionInProgressVariant2Type? Type2775 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionIdleVariant2? Type2775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2776 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionIdleVariant2Type? Type2776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2777 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionInProgress? Type2777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2778 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionInProgressVariant2? Type2778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2779 { get; set; } + public global::tryAGI.OpenAI.WebhookAgentSessionInProgressVariant2Type? Type2779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2780 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2781 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2782 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2783 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2784 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2785 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2786 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2787 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2788 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2789 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2790 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2791 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2792 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2793 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2794 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2795 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2796 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2797 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2798 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2799 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2800 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2801 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2802 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2803 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2804 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2805 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2806 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2807 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2808 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2809 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2810 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2811 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2812 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2813 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2814 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2815 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2816 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2817 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2818 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2819 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2820 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2821 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2822 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2823 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2824 { get; set; } + public global::System.Collections.Generic.IList? Type2824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2825 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2826 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2827 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2828 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2828 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2829 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2830 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2831 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2832 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2833 { get; set; } + public global::System.Collections.Generic.IList? Type2833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2834 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2835 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2836 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2837 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2838 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2839 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2840 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2841 { get; set; } + public global::System.Collections.Generic.IList? Type2841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2842 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2843 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2844 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2845 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2846 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2847 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2848 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2849 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2850 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2851 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2852 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2853 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2854 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2855 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2856 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2857 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2858 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2859 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2860 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2861 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2862 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2863 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2864 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2865 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2866 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2867 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2868 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2869 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2870 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2871 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2872 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorType? Type2873 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type2874 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentSteer? Type2875 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputType? Type2876 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationResultBodyType? Type2877 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorType? Type2877 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type2878 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type2878 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type2879 { get; set; } + public global::tryAGI.OpenAI.MisalignmentSteer? Type2879 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2880 { get; set; } + public global::tryAGI.OpenAI.ModerationInputType? Type2880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2881 { get; set; } + public global::tryAGI.OpenAI.ModerationResultBodyType? Type2881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2882 { get; set; } + public global::System.Collections.Generic.Dictionary? Type2882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2883 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type2883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationMode? Type2884 { get; set; } + public global::System.Collections.Generic.IList? Type2884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationConfigParam? Type2885 { get; set; } + public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationPolicyParam? Type2886 { get; set; } + public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2887 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2888 { get; set; } + public global::tryAGI.OpenAI.ModerationMode? Type2888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2889 { get; set; } + public global::tryAGI.OpenAI.ModerationConfigParam? Type2889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2890 { get; set; } + public global::tryAGI.OpenAI.ModerationPolicyParam? Type2890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2891 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2892 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2893 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2894 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2894 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2895 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParamType? Type2895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type2896 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type2897 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2898 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2899 { get; set; } + public global::System.Collections.Generic.IList? Type2899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type2900 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type2900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBody? Type2901 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type2901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2902 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2903 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2904 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type2904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2905 { get; set; } + public global::tryAGI.OpenAI.FileCitationBody? Type2905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2906 { get; set; } + public global::tryAGI.OpenAI.FileCitationBodyType? Type2906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2907 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBody? Type2907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2908 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type2909 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type2910 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2910 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2911 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2912 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2912 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2913 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type2913 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2914 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type2914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type2915 { get; set; } + public global::System.Collections.Generic.IList? Type2915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type2916 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type2916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2917 { get; set; } + public global::System.Collections.Generic.IList? Type2917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2918 { get; set; } + public global::System.Collections.Generic.IList? Type2918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type2919 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type2919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageDetail? Type2920 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type2920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type2921 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type2921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2922 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2923 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type2923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileInputDetail? Type2924 { get; set; } + public global::tryAGI.OpenAI.ImageDetail? Type2924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type2925 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type2925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase2? Type2926 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type2927 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2927 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2928 { get; set; } + public global::tryAGI.OpenAI.FileInputDetail? Type2928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem3? Type2929 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type2929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2930 { get; set; } + public global::tryAGI.OpenAI.MessagePhase2? Type2930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2931 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type2931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCaller? Type2932 { get; set; } + public global::System.Collections.Generic.IList? Type2932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2933 { get; set; } + public global::tryAGI.OpenAI.ContentItem3? Type2933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2934 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2935 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2936 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCaller? Type2936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2937 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2938 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2939 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2940 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2941 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2942 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2943 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageBackground? Type2944 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageOutputFormat? Type2945 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type2946 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2947 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2948 { get; set; } + public global::tryAGI.OpenAI.ImageBackground? Type2948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2949 { get; set; } + public global::tryAGI.OpenAI.ImageOutputFormat? Type2949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2950 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type2950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButtonType? Type2951 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParamType? Type2952 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2953 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CoordParam? Type2954 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParamType? Type2955 { get; set; } + public global::tryAGI.OpenAI.ClickButtonType? Type2955 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2956 { get; set; } + public global::tryAGI.OpenAI.ClickParamType? Type2956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2957 { get; set; } + public global::tryAGI.OpenAI.DoubleClickActionType? Type2957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParamType? Type2958 { get; set; } + public global::tryAGI.OpenAI.CoordParam? Type2958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2959 { get; set; } + public global::tryAGI.OpenAI.DragParamType? Type2959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParamType? Type2960 { get; set; } + public global::System.Collections.Generic.IList? Type2960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParamType? Type2961 { get; set; } + public global::tryAGI.OpenAI.KeyPressActionType? Type2961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParamType? Type2962 { get; set; } + public global::tryAGI.OpenAI.MoveParamType? Type2962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2963 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParamType? Type2963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2964 { get; set; } + public global::tryAGI.OpenAI.ScrollParamType? Type2964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type2965 { get; set; } + public global::tryAGI.OpenAI.TypeParamType? Type2965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankerVersionType? Type2966 { get; set; } + public global::tryAGI.OpenAI.WaitParamType? Type2966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2967 { get; set; } + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type2968 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallType? Type2968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters2? Type2969 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type2969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2970 { get; set; } + public global::tryAGI.OpenAI.RankerVersionType? Type2970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolType? Type2971 { get; set; } + public global::tryAGI.OpenAI.HybridSearchOptions? Type2971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2972 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type2972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2973 { get; set; } + public global::tryAGI.OpenAI.Filters2? Type2973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2974 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type2974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2975 { get; set; } + public global::tryAGI.OpenAI.ComputerToolType? Type2975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2976 { get; set; } + public global::tryAGI.OpenAI.ComputerEnvironment? Type2976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2977 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2978 { get; set; } + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2979 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2980 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy2? Type2980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2981 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2982 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2983 { get; set; } + public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2984 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2985 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParam? Type2985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2986 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem2? Type2987 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy3? Type2987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2988 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2989 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2990 { get; set; } + public global::System.Collections.Generic.IList? Type2990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2991 { get; set; } + public global::tryAGI.OpenAI.SkillsItem2? Type2991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2992 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2992 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2993 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2994 { get; set; } + public global::tryAGI.OpenAI.LocalSkillParam? Type2994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2995 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2996 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2997 { get; set; } + public global::System.Collections.Generic.IList? Type2997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2998 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2999 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type3000 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type3000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type3001 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant1? Type3001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type3002 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type3002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type3003 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type3003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type3004 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParam? Type3004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamType? Type3005 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type3005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type3006 { get; set; } + public global::tryAGI.OpenAI.GrammarSyntax1? Type3006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type3007 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type3007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type3008 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type3008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmptyModelParam? Type3009 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamType? Type3009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam? Type3010 { get; set; } + public global::tryAGI.OpenAI.Format2? Type3010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type3011 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type3011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type3012 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type3012 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3013 { get; set; } + public global::tryAGI.OpenAI.EmptyModelParam? Type3013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem13? Type3014 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParam? Type3014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type3015 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParamType? Type3015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type3016 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamType? Type3016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type3017 { get; set; } + public global::System.Collections.Generic.IList? Type3017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocation? Type3018 { get; set; } + public global::tryAGI.OpenAI.ToolsItem13? Type3018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type3019 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type3019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContextSize? Type3020 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type3020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContentType? Type3021 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type3021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type3022 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocation? Type3022 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3023 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocationType? Type3023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type3024 { get; set; } + public global::tryAGI.OpenAI.SearchContextSize? Type3024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type3025 { get; set; } + public global::tryAGI.OpenAI.SearchContentType? Type3025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsType? Type3026 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type3026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramType? Type3027 { get; set; } + public global::System.Collections.Generic.IList? Type3027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputStatus? Type3028 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type3028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputType? Type3029 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputType? Type3029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBodyType? Type3030 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsType? Type3030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type3031 { get; set; } + public global::tryAGI.OpenAI.ProgramType? Type3031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type3032 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputStatus? Type3032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type3033 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputType? Type3033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellAction? Type3034 { get; set; } + public global::tryAGI.OpenAI.CompactionBodyType? Type3034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallStatus? Type3035 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type3035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type3036 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type3036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type3037 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type3037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type3038 { get; set; } + public global::tryAGI.OpenAI.FunctionShellAction? Type3038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type3039 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallStatus? Type3039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type3040 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type3040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type3041 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type3041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type3042 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResource? Type3042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type3043 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type3043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type3044 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallType? Type3044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type3045 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant12? Type3045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type3046 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type3046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type3047 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type3047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type3048 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type3048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type3049 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type3049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome? Type3050 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type3050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type3051 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type3051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type3052 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type3052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type3053 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type3053 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3054 { get; set; } + public global::tryAGI.OpenAI.Outcome? Type3054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type3055 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type3055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type3056 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type3056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type3057 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type3057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type3058 { get; set; } + public global::System.Collections.Generic.IList? Type3058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type3059 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type3059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type3060 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type3060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type3061 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type3061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type3062 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type3062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation? Type3063 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type3063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type3064 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type3064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type3065 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type3065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type3066 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type3066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3067 { get; set; } + public global::tryAGI.OpenAI.Operation? Type3067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3068 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type3068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3069 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type3069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HTTPErrorType? Type3070 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type3070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DetailEnum? Type3071 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3072 { get; set; } + public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3073 { get; set; } + public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam? Type3074 { get; set; } + public global::tryAGI.OpenAI.HTTPErrorType? Type3074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type3075 { get; set; } + public global::tryAGI.OpenAI.DetailEnum? Type3075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3076 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3077 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileDetailEnum? Type3078 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParam? Type3078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam? Type3079 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParamType? Type3079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type3080 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3081 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3082 { get; set; } + public global::tryAGI.OpenAI.FileDetailEnum? Type3082 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3083 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParam? Type3083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type3084 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParamType? Type3084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3085 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3086 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParam? Type3087 { get; set; } + public global::System.Collections.Generic.IList? Type3087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParamType? Type3088 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item? Type3088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParam? Type3089 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParamType? Type3090 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3091 { get; set; } + public global::tryAGI.OpenAI.FileCitationParam? Type3091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3092 { get; set; } + public global::tryAGI.OpenAI.FileCitationParamType? Type3092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3093 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParam? Type3093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3094 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParamType? Type3094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3095 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3096 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3097 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type3098 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? Type3098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3099 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType? Type3099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3100 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType? Type3100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type3101 { get; set; } + public global::System.Collections.Generic.IList? Type3101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3102 { get; set; } + public global::tryAGI.OpenAI.ToolsItem14? Type3102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3103 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator? Type3103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3104 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type3104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3105 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3106 { get; set; } + public global::System.Collections.Generic.IList? Type3106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3107 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3108 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3109 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3110 { get; set; } + public global::tryAGI.OpenAI.FunctionShellActionParam? Type3110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3111 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3112 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3113 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant13? Type3113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3114 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3115 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3116 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3117 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3118 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3119 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3120 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3121 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3122 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3123 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3124 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3125 { get; set; } + public global::System.Collections.Generic.IList? Type3125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3126 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3127 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType? Type3128 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramItemParamType? Type3129 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3130 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3131 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type3132 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type3133 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3134 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3135 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3136 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3137 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3138 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3139 { get; set; } + public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3140 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType? Type3140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3141 { get; set; } + public global::tryAGI.OpenAI.ProgramItemParamType? Type3141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3142 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningEffort? Type3143 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningSummary? Type3144 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type3144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3145 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type3145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTextVerbosity? Type3146 { get; set; } + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3147 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3148 { get; set; } + public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3149 { get; set; } + public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3150 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3151 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? Type3152 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFileSearchToolInputParamType? Type3153 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? Type3154 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParamType? Type3155 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningEffort? Type3155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContainerMemoryLimit? Type3156 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningSummary? Type3156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContainerNetworkPolicyDisabledParam? Type3157 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContainerNetworkPolicyDisabledParamType? Type3158 { get; set; } + public global::tryAGI.OpenAI.LiveTextVerbosity? Type3158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellNetworkPolicyAllowlistParam? Type3159 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellNetworkPolicyAllowlistParamType? Type3160 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSkillReferenceParam? Type3161 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSkillReferenceParamType? Type3162 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInlineSkillSourceParam? Type3163 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInlineSkillSourceParamType? Type3164 { get; set; } + public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? Type3164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInlineSkillSourceParamMediaType? Type3165 { get; set; } + public global::tryAGI.OpenAI.LiveFileSearchToolInputParamType? Type3165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInlineSkillParam? Type3166 { get; set; } + public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? Type3166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInlineSkillParamType? Type3167 { get; set; } + public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParamType? Type3167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParam? Type3168 { get; set; } + public global::tryAGI.OpenAI.LiveContainerMemoryLimit? Type3168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamType? Type3169 { get; set; } + public global::tryAGI.OpenAI.LiveContainerNetworkPolicyDisabledParam? Type3169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyVariant1? Type3170 { get; set; } + public global::tryAGI.OpenAI.LiveContainerNetworkPolicyDisabledParamType? Type3170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamNetworkPolicyVariant1Discriminator? Type3171 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellNetworkPolicyAllowlistParam? Type3171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamNetworkPolicyVariant1DiscriminatorType? Type3172 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellNetworkPolicyAllowlistParamType? Type3172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3173 { get; set; } + public global::tryAGI.OpenAI.LiveSkillReferenceParam? Type3173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsVariant1Item? Type3174 { get; set; } + public global::tryAGI.OpenAI.LiveSkillReferenceParamType? Type3174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamSkillsVariant1ItemDiscriminator? Type3175 { get; set; } + public global::tryAGI.OpenAI.LiveInlineSkillSourceParam? Type3175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamSkillsVariant1ItemDiscriminatorType? Type3176 { get; set; } + public global::tryAGI.OpenAI.LiveInlineSkillSourceParamType? Type3176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContainerReferenceParam? Type3177 { get; set; } + public global::tryAGI.OpenAI.LiveInlineSkillSourceParamMediaType? Type3177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContainerReferenceParamType? Type3178 { get; set; } + public global::tryAGI.OpenAI.LiveInlineSkillParam? Type3178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLocalSkillParam? Type3179 { get; set; } + public global::tryAGI.OpenAI.LiveInlineSkillParamType? Type3179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLocalEnvironmentParam? Type3180 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParam? Type3180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLocalEnvironmentParamType? Type3181 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamType? Type3181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3182 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyVariant1? Type3182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Type3183 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamNetworkPolicyVariant1Discriminator? Type3183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellToolInputParamType? Type3184 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamNetworkPolicyVariant1DiscriminatorType? Type3184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant14? Type3185 { get; set; } + public global::System.Collections.Generic.IList? Type3185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellToolInputParamEnvironmentVariant1Discriminator? Type3186 { get; set; } + public global::tryAGI.OpenAI.SkillsVariant1Item? Type3186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveHostedShellToolInputParamEnvironmentVariant1DiscriminatorType? Type3187 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamSkillsVariant1ItemDiscriminator? Type3187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? Type3188 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellContainerAutoParamSkillsVariant1ItemDiscriminatorType? Type3188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveImageGenerationToolInputParamType? Type3189 { get; set; } + public global::tryAGI.OpenAI.LiveContainerReferenceParam? Type3189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolInputParam? Type3190 { get; set; } + public global::tryAGI.OpenAI.LiveContainerReferenceParamType? Type3190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolInputParamType? Type3191 { get; set; } + public global::tryAGI.OpenAI.LiveLocalSkillParam? Type3191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCustomToolInputParam? Type3192 { get; set; } + public global::tryAGI.OpenAI.LiveLocalEnvironmentParam? Type3192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCustomToolInputParamType? Type3193 { get; set; } + public global::tryAGI.OpenAI.LiveLocalEnvironmentParamType? Type3193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Type3194 { get; set; } + public global::System.Collections.Generic.IList? Type3194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveNamespaceToolInputParamType? Type3195 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Type3195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? Type3196 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellToolInputParamType? Type3196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveToolSearchToolInputParamType? Type3197 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant14? Type3197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? Type3198 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellToolInputParamEnvironmentVariant1Discriminator? Type3198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveProgrammaticToolInputParamType? Type3199 { get; set; } + public global::tryAGI.OpenAI.LiveHostedShellToolInputParamEnvironmentVariant1DiscriminatorType? Type3199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveComputerToolInputParam? Type3200 { get; set; } + public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? Type3200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveComputerToolInputParamType? Type3201 { get; set; } + public global::tryAGI.OpenAI.LiveImageGenerationToolInputParamType? Type3201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? Type3202 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolInputParam? Type3202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveApplyPatchToolInputParamType? Type3203 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolInputParamType? Type3203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3204 { get; set; } + public global::tryAGI.OpenAI.LiveCustomToolInputParam? Type3204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3205 { get; set; } + public global::tryAGI.OpenAI.LiveCustomToolInputParamType? Type3205 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3206 { get; set; } + public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Type3206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem14? Type3207 { get; set; } + public global::tryAGI.OpenAI.LiveNamespaceToolInputParamType? Type3207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3208 { get; set; } + public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? Type3208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3209 { get; set; } + public global::tryAGI.OpenAI.LiveToolSearchToolInputParamType? Type3209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3210 { get; set; } + public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? Type3210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3211 { get; set; } + public global::tryAGI.OpenAI.LiveProgrammaticToolInputParamType? Type3211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3212 { get; set; } + public global::tryAGI.OpenAI.LiveComputerToolInputParam? Type3212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3213 { get; set; } + public global::tryAGI.OpenAI.LiveComputerToolInputParamType? Type3213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3214 { get; set; } + public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? Type3214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3215 { get; set; } + public global::tryAGI.OpenAI.LiveApplyPatchToolInputParamType? Type3215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3216 { get; set; } + public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3217 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3218 { get; set; } + public global::System.Collections.Generic.IList? Type3218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3219 { get; set; } + public global::tryAGI.OpenAI.ToolsItem15? Type3219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3220 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3221 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3222 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3223 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3224 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3225 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3226 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3227 { get; set; } + public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3228 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3229 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3230 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3231 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3232 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type3233 { get; set; } + public global::System.Collections.Generic.IList? Type3233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3234 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3235 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItem? Type3236 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3237 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3238 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3239 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3240 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3241 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3242 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3243 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3244 { get; set; } + public global::System.Collections.Generic.IList? Type3244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3245 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type3245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3246 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3247 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem15? Type3248 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItem? Type3248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3249 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3250 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3251 { get; set; } + public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3252 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3253 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3254 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3255 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3256 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3257 { get; set; } + public global::System.Collections.Generic.IList? Type3257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminator? Type3258 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3259 { get; set; } + public global::System.Collections.Generic.IList? Type3259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3260 { get; set; } + public global::tryAGI.OpenAI.ToolsItem16? Type3260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3261 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3262 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3263 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3264 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3265 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3266 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3267 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3268 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3269 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3270 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminator? Type3270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3271 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3272 { get; set; } + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3273 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3274 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3275 { get; set; } + public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBody? Type3276 { get; set; } + public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3277 { get; set; } + public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input4? Type3278 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3279 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3280 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output5? Type3281 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3282 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3283 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3284 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3285 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3286 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3287 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3288 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBody? Type3288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3289 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3290 { get; set; } + public global::tryAGI.OpenAI.Input4? Type3290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationBody? Type3291 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type3292 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3293 { get; set; } + public global::tryAGI.OpenAI.Output5? Type3293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3294 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNotice? Type3295 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResource? Type3296 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3297 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3298 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResource? Type3299 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3300 { get; set; } + public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageOrder? Type3301 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageStatus? Type3302 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponse? Type3303 { get; set; } + public global::tryAGI.OpenAI.CreateConversationBody? Type3303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3304 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type3304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider2? Type3305 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3306 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3307 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNotice? Type3307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResource? Type3308 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResource? Type3308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3309 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3310 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3311 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResource? Type3311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3312 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3313 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageOrder? Type3313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3314 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageStatus? Type3314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3315 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponse? Type3315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3316 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3317 { get; set; } + public global::tryAGI.OpenAI.Provider2? Type3317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider3? Type3318 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3319 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3320 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResource? Type3320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3321 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3322 { get; set; } + public global::System.Collections.Generic.IList? Type3322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrency? Type3323 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3324 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitInterval? Type3325 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3326 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3327 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3328 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3329 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3330 { get; set; } + public global::tryAGI.OpenAI.Provider3? Type3330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3331 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3332 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3333 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3334 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3335 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrency? Type3335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3336 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3337 { get; set; } + public global::tryAGI.OpenAI.SpendLimitInterval? Type3337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3338 { get; set; } + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3339 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3340 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3341 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3342 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3343 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3344 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3345 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3346 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3347 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3348 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3349 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3350 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3351 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3352 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3353 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3354 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResource? Type3355 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3356 { get; set; } + public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem2? Type3357 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3358 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3359 { get; set; } + public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type3360 { get; set; } + public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type3361 { get; set; } + public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type3362 { get; set; } + public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type3363 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type3364 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error22? Type3365 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type3366 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type3367 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResource? Type3367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type3368 { get; set; } + public global::System.Collections.Generic.IList? Type3368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type3369 { get; set; } + public global::tryAGI.OpenAI.ResultsItem2? Type3369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3370 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type3371 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type3372 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type3372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3373 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type3373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3374 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type3374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3375 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type3375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3376 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type3376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type3377 { get; set; } + public global::tryAGI.OpenAI.Error22? Type3377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3378 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type3378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3379 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type3379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3380 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type3380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3381 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type3381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3382 { get; set; } + public global::System.Collections.Generic.IList? Type3382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3383 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type3383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3384 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type3384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type3385 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3386 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type3387 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3388 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type3389 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type3389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnum? Type3390 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3391 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type3392 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type3393 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3394 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3395 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum2? Type3396 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3397 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type3397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type3398 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3399 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type3399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3400 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type3401 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type3401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type3402 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnum? Type3402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3403 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type3404 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type3404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type3405 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type3405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type3406 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type3407 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3408 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum2? Type3408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type3409 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type3410 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type3410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3411 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type3412 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3413 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type3413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type3414 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type3414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3415 { get; set; } + public global::System.Collections.Generic.IList? Type3415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type3416 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type3416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3417 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type3417 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3418 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type3418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3419 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type3419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3420 { get; set; } + public global::System.Collections.Generic.IList? Type3420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3421 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type3421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3422 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type3422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type3423 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3424 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type3424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3425 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type3426 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type3426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3427 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3428 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type3428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type3429 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3430 { get; set; } + public global::System.Collections.Generic.IList? Type3430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type3431 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3432 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type3433 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type3434 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3435 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type3435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type3436 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3437 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type3438 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type3438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3439 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type3440 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type3441 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type3441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3442 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type3443 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type3443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type3444 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type3445 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type3445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type3446 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type3446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3447 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type3448 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type3448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type3449 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice9? Type3450 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type3450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type3451 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type3452 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type3452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type3453 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type3453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type3454 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3454 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3455 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type3455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem5? Type3456 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type3456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3457 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type3457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3458 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type3458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3459 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type3460 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type3460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3461 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type3461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type3462 { get; set; } + public global::tryAGI.OpenAI.ToolChoice9? Type3462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type3463 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type3463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type3464 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type3464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3465 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type3465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type3466 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type3466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type3467 { get; set; } + public global::System.Collections.Generic.IList? Type3467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type3468 { get; set; } + public global::tryAGI.OpenAI.ContentItem5? Type3468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type3469 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3470 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type3471 { get; set; } + public global::System.Collections.Generic.IList? Type3471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3472 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type3472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3473 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type3474 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type3474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3475 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type3475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type3476 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type3476 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3477 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type3478 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type3478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3479 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type3479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type3480 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type3480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type3481 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type3481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type3482 { get; set; } + public global::System.Collections.Generic.IList? Type3482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3483 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type3483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type3484 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type3485 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type3486 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type3486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type3487 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type3488 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type3488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type3489 { get; set; } + public global::System.Collections.Generic.IList? Type3489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type3490 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type3490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type3491 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type3492 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type3492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3493 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type3493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type3494 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type3494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3495 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3496 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type3496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type3497 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type3497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3498 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type3498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3499 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type3499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type3500 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type3500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type3501 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type3501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type3502 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type3502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type3503 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type3503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type3504 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type3504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type3505 { get; set; } + public global::System.Collections.Generic.IList? Type3505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type3506 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type3506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type3507 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type3508 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3509 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type3509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3510 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type3511 { get; set; } + public global::System.Collections.Generic.IList? Type3511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3512 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type3512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type3513 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type3513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type3514 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type3514 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3515 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type3515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3516 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type3516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3517 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type3517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3518 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type3518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3519 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type3519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResource? Type3520 { get; set; } + public global::tryAGI.OpenAI.Status? Type3520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3521 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3522 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3523 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type3523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3524 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3525 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type3525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3526 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type3526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResource? Type3527 { get; set; } + public global::System.Collections.Generic.IList? Type3527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3528 { get; set; } + public global::tryAGI.OpenAI.DecisionInputText? Type3528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3529 { get; set; } + public global::tryAGI.OpenAI.DecisionInputTextType? Type3529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3530 { get; set; } + public global::tryAGI.OpenAI.ImageDetailParam? Type3530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3531 { get; set; } + public global::tryAGI.OpenAI.DecisionInputImage? Type3531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3532 { get; set; } + public global::tryAGI.OpenAI.DecisionInputImageType? Type3532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3533 { get; set; } + public global::System.Collections.Generic.IList? Type3533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3534 { get; set; } + public global::tryAGI.OpenAI.DecisionInputContentPartsItem? Type3534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3535 { get; set; } + public global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator? Type3535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3536 { get; set; } + public global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? Type3536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3537 { get; set; } + public global::tryAGI.OpenAI.DecisionInputContent? Type3537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3538 { get; set; } + public global::tryAGI.OpenAI.DecisionInputMessage? Type3538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3539 { get; set; } + public global::tryAGI.OpenAI.DecisionInputMessageRole? Type3539 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3540 { get; set; } + public global::tryAGI.OpenAI.DecisionInputMessageType? Type3540 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3541 { get; set; } + public global::tryAGI.OpenAI.DecisionInput? Type3541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorBodyResource? Type3542 { get; set; } + public global::System.Collections.Generic.IList? Type3542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse2? Type3543 { get; set; } + public global::tryAGI.OpenAI.DecisionInputVariant2Item? Type3543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrderParam? Type3544 { get; set; } + public global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator? Type3544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3545 { get; set; } + public global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? Type3545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResource? Type3546 { get; set; } + public global::tryAGI.OpenAI.QuestionParamPredicate? Type3546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3547 { get; set; } + public global::tryAGI.OpenAI.QuestionParamPredicateType? Type3547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3548 { get; set; } + public global::tryAGI.OpenAI.ChoiceValueParam? Type3548 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3549 { get; set; } + public global::tryAGI.OpenAI.ChoiceOptionParam? Type3549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3550 { get; set; } + public global::tryAGI.OpenAI.QuestionParamChoice? Type3550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3551 { get; set; } + public global::tryAGI.OpenAI.QuestionParamChoiceType? Type3551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3552 { get; set; } + public global::System.Collections.Generic.IList? Type3552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3553 { get; set; } + public global::tryAGI.OpenAI.ScoreLevelParam? Type3553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3554 { get; set; } + public global::tryAGI.OpenAI.QuestionParamScore? Type3554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3555 { get; set; } + public global::tryAGI.OpenAI.QuestionParamScoreType? Type3555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3556 { get; set; } + public global::System.Collections.Generic.IList? Type3556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentObjectResource? Type3557 { get; set; } + public global::tryAGI.OpenAI.QuestionParam? Type3557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResource? Type3558 { get; set; } + public global::tryAGI.OpenAI.QuestionParamDiscriminator? Type3558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResourceType? Type3559 { get; set; } + public global::tryAGI.OpenAI.QuestionParamDiscriminatorType? Type3559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResource? Type3560 { get; set; } + public global::tryAGI.OpenAI.DecisionRequest? Type3560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3561 { get; set; } + public global::System.Collections.Generic.IList? Type3561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResource? Type3562 { get; set; } + public global::tryAGI.OpenAI.AnswerResourcePredicate? Type3562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3563 { get; set; } + public global::tryAGI.OpenAI.AnswerResourcePredicateType? Type3563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3564 { get; set; } + public global::tryAGI.OpenAI.ChoiceValueResource? Type3564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentStatusResource? Type3565 { get; set; } + public global::tryAGI.OpenAI.ChoiceProbabilityResource? Type3565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentResource? Type3566 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceChoice? Type3566 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3567 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceChoiceType? Type3567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3568 { get; set; } + public global::System.Collections.Generic.IList? Type3568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3569 { get; set; } + public global::tryAGI.OpenAI.ScoreProbabilityResource? Type3569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3570 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceScore? Type3570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3571 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceScoreType? Type3571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3572 { get; set; } + public global::System.Collections.Generic.IList? Type3572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3573 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceRefusal? Type3573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3574 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceRefusalType? Type3574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResource? Type3575 { get; set; } + public global::tryAGI.OpenAI.AnswerResource? Type3575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3576 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceDiscriminator? Type3576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3577 { get; set; } + public global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? Type3577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemStatusResource? Type3578 { get; set; } + public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhaseResource? Type3579 { get; set; } + public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResource? Type3580 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageResource? Type3580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResourceType? Type3581 { get; set; } + public global::tryAGI.OpenAI.DecisionResponse? Type3581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3582 { get; set; } + public global::System.Collections.Generic.IList? Type3582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResource? Type3583 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResourceType? Type3584 { get; set; } + public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResource? Type3585 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3586 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3587 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResource? Type3587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3588 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResource? Type3589 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3590 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputText? Type3591 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3592 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3593 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3594 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResource? Type3594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResource? Type3595 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3596 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3597 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3598 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3599 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3600 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3601 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResource? Type3602 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3603 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResource? Type3604 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResourceType? Type3605 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotResource? Type3606 { get; set; } + public global::System.Collections.Generic.IList? Type3606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotResourceType? Type3607 { get; set; } + public global::System.Collections.Generic.IList? Type3607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseCallItemResource? Type3608 { get; set; } + public global::System.Collections.Generic.IList? Type3608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseCallItemResourceType? Type3609 { get; set; } + public global::tryAGI.OpenAI.ErrorBodyResource? Type3609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationFieldResource? Type3610 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse2? Type3610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationOptionResource? Type3611 { get; set; } + public global::tryAGI.OpenAI.ListOrderParam? Type3611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceBrowserAuthentication? Type3612 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceBrowserAuthenticationType? Type3613 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResource? Type3613 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3614 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3614 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3615 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResource? Type3616 { get; set; } + public global::System.Collections.Generic.IList? Type3616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceDiscriminator? Type3617 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceDiscriminatorType? Type3618 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationRequestItemResource? Type3619 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationRequestItemResourceType? Type3620 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResource? Type3621 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResourceType? Type3622 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResourceAction? Type3623 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResource? Type3624 { get; set; } + public global::tryAGI.OpenAI.SubagentObjectResource? Type3624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResourceType? Type3625 { get; set; } + public global::tryAGI.OpenAI.OutputTextResource? Type3625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResourceAction? Type3626 { get; set; } + public global::tryAGI.OpenAI.OutputTextResourceType? Type3626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResource? Type3627 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResource? Type3627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceDiscriminator? Type3628 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceDiscriminatorAction? Type3629 { get; set; } + public global::tryAGI.OpenAI.AgentContentResource? Type3629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestResultItemResource? Type3630 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestResultItemResourceType? Type3631 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3632 { get; set; } + public global::tryAGI.OpenAI.SubagentStatusResource? Type3632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3633 { get; set; } + public global::tryAGI.OpenAI.SubagentResource? Type3633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3634 { get; set; } + public global::System.Collections.Generic.IList? Type3634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3635 { get; set; } + public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3636 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3637 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3638 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3639 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResource? Type3640 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3641 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3642 { get; set; } + public global::tryAGI.OpenAI.MessageContentResource? Type3642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3643 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3644 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3645 { get; set; } + public global::tryAGI.OpenAI.OutputItemStatusResource? Type3645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3646 { get; set; } + public global::tryAGI.OpenAI.MessagePhaseResource? Type3646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3647 { get; set; } + public global::tryAGI.OpenAI.MessageItemResource? Type3647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3648 { get; set; } + public global::tryAGI.OpenAI.MessageItemResourceType? Type3648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3649 { get; set; } + public global::System.Collections.Generic.IList? Type3649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3650 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResource? Type3650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3651 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResourceType? Type3651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3652 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResource? Type3652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3653 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3654 { get; set; } + public global::System.Collections.Generic.IList? Type3654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3655 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3656 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResource? Type3656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3657 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3658 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputText? Type3658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResource? Type3659 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3660 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3661 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResource? Type3662 { get; set; } + public global::tryAGI.OpenAI.InputContentResource? Type3662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3663 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3664 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnObjectResource? Type3665 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnStatusResource? Type3666 { get; set; } + public global::System.Collections.Generic.IList? Type3666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3667 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3668 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3669 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResource? Type3669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3670 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenUsageResource? Type3671 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResource? Type3671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnResource? Type3672 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResourceType? Type3672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResource? Type3673 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotResource? Type3673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3674 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotResourceType? Type3674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3675 { get; set; } + public global::tryAGI.OpenAI.ComputerUseCallItemResource? Type3675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortResource? Type3676 { get; set; } + public global::tryAGI.OpenAI.ComputerUseCallItemResourceType? Type3676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3677 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationFieldResource? Type3677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningResource? Type3678 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationOptionResource? Type3678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceText? Type3679 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceBrowserAuthentication? Type3679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3680 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceBrowserAuthenticationType? Type3680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3681 { get; set; } + public global::System.Collections.Generic.IList? Type3681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3682 { get; set; } + public global::System.Collections.Generic.IList? Type3682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResource? Type3683 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResource? Type3683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3684 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceDiscriminator? Type3684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3685 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationHistoryRequestKindResourceDiscriminatorType? Type3685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityResource? Type3686 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationRequestItemResource? Type3686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResource? Type3687 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationRequestItemResourceType? Type3687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierResource? Type3688 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResource? Type3688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3689 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResourceType? Type3689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3690 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResourceAction? Type3690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3691 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResource? Type3691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3692 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResourceType? Type3692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3693 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResourceAction? Type3693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3694 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResource? Type3694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3695 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceDiscriminator? Type3695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3696 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseKindResourceDiscriminatorAction? Type3696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3697 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestResultItemResource? Type3697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3698 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestResultItemResourceType? Type3698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3699 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3700 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3701 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3702 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3703 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3704 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeResource? Type3705 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3706 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationResource? Type3707 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResource? Type3707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3708 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3709 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceComputerUse? Type3710 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceComputerUseType? Type3711 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3712 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3713 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3714 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3715 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResource? Type3716 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResourceObject? Type3717 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3717 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3718 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResource? Type3719 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResourceObject? Type3720 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3721 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortParam? Type3722 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3723 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningParam? Type3724 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamText? Type3725 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamTextType? Type3726 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResource? Type3726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3727 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3728 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParam? Type3729 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResource? Type3729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3730 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3731 { get; set; } + public global::System.Collections.Generic.IList? Type3731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityParam? Type3732 { get; set; } + public global::tryAGI.OpenAI.TurnObjectResource? Type3732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextParam? Type3733 { get; set; } + public global::tryAGI.OpenAI.TurnStatusResource? Type3733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierParam? Type3734 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3735 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3736 { get; set; } + public global::tryAGI.OpenAI.InputTokensDetailsResource2? Type3736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3737 { get; set; } + public global::tryAGI.OpenAI.OutputTokensDetailsResource2? Type3737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3738 { get; set; } + public global::tryAGI.OpenAI.TokenUsageResource? Type3738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3739 { get; set; } + public global::tryAGI.OpenAI.TurnResource? Type3739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3740 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResource? Type3740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3741 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3742 { get; set; } + public global::System.Collections.Generic.IList? Type3742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3743 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortResource? Type3743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3744 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3745 { get; set; } + public global::tryAGI.OpenAI.ReasoningResource? Type3745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3746 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceText? Type3746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3747 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3748 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3749 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3750 { get; set; } + public global::tryAGI.OpenAI.TextFormatResource? Type3750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeParam? Type3751 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3752 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationParam? Type3753 { get; set; } + public global::tryAGI.OpenAI.VerbosityResource? Type3753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3754 { get; set; } + public global::tryAGI.OpenAI.TextResource? Type3754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3755 { get; set; } + public global::tryAGI.OpenAI.ServiceTierResource? Type3755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamComputerUse? Type3756 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamComputerUseType? Type3757 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3758 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3759 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3760 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3761 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentParams? Type3762 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3763 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentParams? Type3764 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResource? Type3765 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3766 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3767 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessResource? Type3768 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyResource? Type3769 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DesktopResource? Type3770 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3771 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3772 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeResource? Type3772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3773 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3774 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationResource? Type3774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3775 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3776 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3777 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceComputerUse? Type3777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3778 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceComputerUseType? Type3778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3779 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3780 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3781 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3782 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3783 { get; set; } + public global::tryAGI.OpenAI.AgentResource? Type3783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3784 { get; set; } + public global::tryAGI.OpenAI.AgentResourceObject? Type3784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3785 { get; set; } + public global::System.Collections.Generic.IList? Type3785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3786 { get; set; } + public global::tryAGI.OpenAI.AgentListResource? Type3786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3787 { get; set; } + public global::tryAGI.OpenAI.AgentListResourceObject? Type3787 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3788 { get; set; } + public global::System.Collections.Generic.IList? Type3788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3789 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortParam? Type3789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3790 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3790 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3791 { get; set; } + public global::tryAGI.OpenAI.ReasoningParam? Type3791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3792 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamText? Type3792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetupCommandParam? Type3793 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamTextType? Type3793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessParam? Type3794 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyParam? Type3795 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DesktopParam? Type3796 { get; set; } + public global::tryAGI.OpenAI.TextFormatParam? Type3796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3797 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3798 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3799 { get; set; } + public global::tryAGI.OpenAI.VerbosityParam? Type3799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3800 { get; set; } + public global::tryAGI.OpenAI.TextParam? Type3800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3801 { get; set; } + public global::tryAGI.OpenAI.ServiceTierParam? Type3801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3802 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3803 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3804 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInline? Type3805 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3806 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParam? Type3807 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3808 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3809 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInline? Type3810 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3811 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParam? Type3812 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3813 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3814 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3815 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3816 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3817 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3817 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3818 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeParam? Type3818 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3819 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3820 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationParam? Type3820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3821 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3822 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionStatusResource? Type3823 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamComputerUse? Type3823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserAuthentication? Type3824 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamComputerUseType? Type3824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserAuthenticationType? Type3825 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserOriginAccess? Type3826 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserOriginAccessType? Type3827 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResource? Type3828 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceDiscriminator? Type3829 { get; set; } + public global::tryAGI.OpenAI.CreateAgentParams? Type3829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceDiscriminatorType? Type3830 { get; set; } + public global::System.Collections.Generic.IList? Type3830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceComputerUseApprovalRequest? Type3831 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentParams? Type3831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceComputerUseApprovalRequestType? Type3832 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResource? Type3832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3833 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3834 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3835 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessResource? Type3835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3836 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyResource? Type3836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3837 { get; set; } + public global::tryAGI.OpenAI.DesktopResource? Type3837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3838 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3839 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3840 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3841 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3842 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3843 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3844 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3845 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3846 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3847 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResource? Type3848 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3849 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3850 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3851 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3852 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3853 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3854 { get; set; } + public global::System.Collections.Generic.IList? Type3854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceComputerUse? Type3855 { get; set; } + public global::System.Collections.Generic.IList? Type3855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceComputerUseType? Type3856 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResource? Type3857 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3858 { get; set; } + public global::System.Collections.Generic.IList? Type3858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3859 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentResource? Type3860 { get; set; } + public global::tryAGI.OpenAI.SetupCommandParam? Type3860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3861 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessParam? Type3861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3862 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyParam? Type3862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3863 { get; set; } + public global::tryAGI.OpenAI.DesktopParam? Type3863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerSizeResource? Type3864 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3865 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3866 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3867 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3868 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResource? Type3869 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3870 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3871 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResource? Type3872 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInline? Type3872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResourceObject? Type3873 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3874 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParam? Type3874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResource? Type3875 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResourceObject? Type3876 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3876 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3877 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInline? Type3877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3878 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3879 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParam? Type3879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3880 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3881 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3882 { get; set; } + public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3883 { get; set; } + public global::System.Collections.Generic.IList? Type3883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3884 { get; set; } + public global::System.Collections.Generic.IList? Type3884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3885 { get; set; } + public global::System.Collections.Generic.IList? Type3885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3886 { get; set; } + public global::System.Collections.Generic.IList? Type3886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3887 { get; set; } + public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParam? Type3888 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3889 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3890 { get; set; } + public global::tryAGI.OpenAI.SessionStatusResource? Type3890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3891 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserAuthentication? Type3891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3892 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserAuthenticationType? Type3892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3893 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserOriginAccess? Type3893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3894 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceBrowserOriginAccessType? Type3894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamComputerUse? Type3895 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResource? Type3895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamComputerUseType? Type3896 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceDiscriminator? Type3896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParam? Type3897 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalRequestKindResourceDiscriminatorType? Type3897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3898 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceComputerUseApprovalRequest? Type3898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3899 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceComputerUseApprovalRequestType? Type3899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3900 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3900 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3901 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNone? Type3902 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3903 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerSizeParam? Type3904 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3905 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3906 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3907 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3908 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParam? Type3909 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3910 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3911 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputText? Type3912 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3913 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImage? Type3914 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3915 { get; set; } + public global::tryAGI.OpenAI.McpTransportResource? Type3915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParam? Type3916 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3917 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3918 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParam? Type3919 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamType? Type3920 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamRole? Type3921 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3921 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3922 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceComputerUse? Type3922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionInputParam? Type3923 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceComputerUseType? Type3923 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3924 { get; set; } + public global::tryAGI.OpenAI.AgentToolResource? Type3924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3925 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionErrorResource? Type3926 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventError? Type3927 { get; set; } + public global::tryAGI.OpenAI.SessionAgentResource? Type3927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventErrorType? Type3928 { get; set; } + public global::System.Collections.Generic.IList? Type3928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3929 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3930 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3931 { get; set; } + public global::tryAGI.OpenAI.ContainerSizeResource? Type3931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3932 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type3933 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type3934 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type3935 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type3936 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResource? Type3936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type3937 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type3938 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type3939 { get; set; } + public global::tryAGI.OpenAI.SessionResource? Type3939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type3940 { get; set; } + public global::tryAGI.OpenAI.SessionResourceObject? Type3940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type3941 { get; set; } + public global::System.Collections.Generic.IList? Type3941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type3942 { get; set; } + public global::tryAGI.OpenAI.SessionListResource? Type3942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type3943 { get; set; } + public global::tryAGI.OpenAI.SessionListResourceObject? Type3943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type3944 { get; set; } + public global::System.Collections.Generic.IList? Type3944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type3945 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type3946 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type3947 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type3948 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type3949 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type3950 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type3951 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type3952 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type3953 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type3954 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type3955 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParam? Type3955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type3956 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type3957 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type3958 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type3959 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type3960 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type3961 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type3962 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamComputerUse? Type3962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type3963 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamComputerUseType? Type3963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type3964 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParam? Type3964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type3965 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type3966 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type3967 { get; set; } + public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type3968 { get; set; } + public global::System.Collections.Generic.IList? Type3968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type3969 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNone? Type3969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type3970 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type3971 { get; set; } + public global::tryAGI.OpenAI.ContainerSizeParam? Type3971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type3972 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type3973 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResource? Type3974 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type3975 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type3976 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParam? Type3976 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3977 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResource? Type3978 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type3979 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputText? Type3979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type3980 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type3981 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImage? Type3981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type3982 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type3983 { get; set; } + public global::tryAGI.OpenAI.InputContentParam? Type3983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type3984 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type3985 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type3986 { get; set; } + public global::tryAGI.OpenAI.InputMessageParam? Type3986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type3987 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamType? Type3987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type3988 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamRole? Type3988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type3989 { get; set; } + public global::System.Collections.Generic.IList? Type3989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type3990 { get; set; } + public global::tryAGI.OpenAI.CreateSessionInputParam? Type3990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type3991 { get; set; } + public global::System.Collections.Generic.IList? Type3991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type3992 { get; set; } + public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type3993 { get; set; } + public global::tryAGI.OpenAI.SessionErrorResource? Type3993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type3994 { get; set; } + public global::tryAGI.OpenAI.SessionEventError? Type3994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type3995 { get; set; } + public global::tryAGI.OpenAI.SessionEventErrorType? Type3995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type3996 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type3997 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type3998 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type3999 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEvent? Type4000 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type4000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminator? Type4001 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type4001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type4002 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type4002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type4003 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type4003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type4004 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type4004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type4005 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type4005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResource? Type4006 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type4006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type4007 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type4007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResource? Type4008 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type4008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type4009 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type4009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResource? Type4010 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type4010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type4011 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type4011 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4012 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type4012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type4013 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type4013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type4014 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type4014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserAuthenticationFieldValueParam? Type4015 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type4015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParam? Type4016 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type4016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParamType? Type4017 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type4017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParamAction? Type4018 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type4018 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4019 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type4019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParam? Type4020 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type4020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParamType? Type4021 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type4021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParamAction? Type4022 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type4022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthentication? Type4023 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type4023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationType? Type4024 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type4024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationDiscriminator? Type4025 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type4025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationDiscriminatorAction? Type4026 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type4026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BrowserOriginAccessDecisionParam? Type4027 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type4027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserOriginAccessParam? Type4028 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type4028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserOriginAccessParamType? Type4029 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type4029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParam? Type4030 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type4030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamDiscriminator? Type4031 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type4031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamDiscriminatorType? Type4032 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type4032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputComputerUseApprovalRequestResult? Type4033 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type4033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputComputerUseApprovalRequestResultType? Type4034 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type4034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type4035 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type4035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type4036 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type4036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type4037 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type4037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type4038 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type4038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputParam? Type4039 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type4039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type4040 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type4040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type4041 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResource? Type4041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParam? Type4042 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type4042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type4043 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type4043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type4044 { get; set; } + public global::System.Collections.Generic.IList? Type4044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionEventsParams? Type4045 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResource? Type4045 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4046 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type4046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnTraceResource? Type4047 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type4047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnTraceResourceObject? Type4048 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type4048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTraceListResource? Type4049 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type4049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTraceListResourceObject? Type4050 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type4050 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4051 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type4051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusParam? Type4052 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type4052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusFilterParam? Type4053 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type4053 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4054 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type4054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResource? Type4055 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type4055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResourceObject? Type4056 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type4056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResource? Type4057 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type4057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResourceObject? Type4058 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type4058 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4059 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type4059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultParams? Type4060 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type4060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResource? Type4061 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type4061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type4062 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type4062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type4063 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type4063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type4064 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type4064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type4065 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type4065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type4066 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type4066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type4067 { get; set; } + public global::tryAGI.OpenAI.SessionEvent? Type4067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type4068 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminator? Type4068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type4069 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type4069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type4070 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type4070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type4071 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type4071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthRefreshResource? Type4072 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type4072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type4073 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResource? Type4073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type4074 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type4074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type4075 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResource? Type4075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type4076 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type4076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type4077 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResource? Type4077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type4078 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type4078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type4079 { get; set; } + public global::System.Collections.Generic.IList? Type4079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type4080 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type4080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type4081 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type4081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type4082 { get; set; } + public global::tryAGI.OpenAI.BrowserAuthenticationFieldValueParam? Type4082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type4083 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParam? Type4083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type4084 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParamType? Type4084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type4085 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationSubmitParamAction? Type4085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type4086 { get; set; } + public global::System.Collections.Generic.IList? Type4086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type4087 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParam? Type4087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type4088 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParamType? Type4088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResource? Type4089 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationCancelParamAction? Type4089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type4090 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthentication? Type4090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResource? Type4091 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationType? Type4091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type4092 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationDiscriminator? Type4092 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4093 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserAuthenticationDiscriminatorAction? Type4093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type4094 { get; set; } + public global::tryAGI.OpenAI.BrowserOriginAccessDecisionParam? Type4094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type4095 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserOriginAccessParam? Type4095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type4096 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamBrowserOriginAccessParamType? Type4096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type4097 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParam? Type4097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type4098 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamDiscriminator? Type4098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type4099 { get; set; } + public global::tryAGI.OpenAI.ComputerUseApprovalResponseParamDiscriminatorType? Type4099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type4100 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputComputerUseApprovalRequestResult? Type4100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type4101 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputComputerUseApprovalRequestResultType? Type4101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type4102 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type4102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type4103 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type4103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type4104 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type4104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type4105 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type4105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type4106 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputParam? Type4106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type4107 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type4107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type4108 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type4108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type4109 { get; set; } + public global::tryAGI.OpenAI.SessionInputParam? Type4109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type4110 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type4110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type4111 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type4111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type4112 { get; set; } + public global::tryAGI.OpenAI.CreateSessionEventsParams? Type4112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type4113 { get; set; } + public global::System.Collections.Generic.IList? Type4113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type4114 { get; set; } + public global::tryAGI.OpenAI.SessionTurnTraceResource? Type4114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type4115 { get; set; } + public global::tryAGI.OpenAI.SessionTurnTraceResourceObject? Type4115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type4116 { get; set; } + public global::tryAGI.OpenAI.SessionTraceListResource? Type4116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type4117 { get; set; } + public global::tryAGI.OpenAI.SessionTraceListResourceObject? Type4117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type4118 { get; set; } + public global::System.Collections.Generic.IList? Type4118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type4119 { get; set; } + public global::tryAGI.OpenAI.VaultStatusParam? Type4119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type4120 { get; set; } + public global::tryAGI.OpenAI.VaultStatusFilterParam? Type4120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type4121 { get; set; } + public global::System.Collections.Generic.IList? Type4121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type4122 { get; set; } + public global::tryAGI.OpenAI.VaultResource? Type4122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type4123 { get; set; } + public global::tryAGI.OpenAI.VaultResourceObject? Type4123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type4124 { get; set; } + public global::tryAGI.OpenAI.VaultListResource? Type4124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type4125 { get; set; } + public global::tryAGI.OpenAI.VaultListResourceObject? Type4125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type4126 { get; set; } + public global::System.Collections.Generic.IList? Type4126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type4127 { get; set; } + public global::tryAGI.OpenAI.CreateVaultParams? Type4127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type4128 { get; set; } + public global::tryAGI.OpenAI.UpdateVaultParams? Type4128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type4129 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResource? Type4129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type4130 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type4130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type4131 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type4131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type4132 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type4132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type4133 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type4133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type4134 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type4134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type4135 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type4135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type4136 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type4136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type4137 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type4137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type4138 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type4138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type4139 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type4139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type4140 { get; set; } + public global::tryAGI.OpenAI.McpOauthRefreshResource? Type4140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBody? Type4141 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type4141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type4142 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type4142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResource? Type4143 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type4143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type4144 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type4144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4145 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type4145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type4146 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type4146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type4147 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type4147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4148 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type4148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type4149 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type4149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type4150 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type4150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type4151 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type4151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type4152 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type4152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type4153 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type4153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRotateSecretBody? Type4154 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type4154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicTestEndpointBody? Type4155 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type4155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type4156 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type4156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type4157 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResource? Type4157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type4158 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type4158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type4159 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResource? Type4159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionRequiredActionTypeResource? Type4160 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type4160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionRequiredActionPayloadResource? Type4161 { get; set; } + public global::System.Collections.Generic.IList? Type4161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentSessionConnectPayloadResource? Type4162 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type4162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type4163 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type4163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type4164 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type4164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type4165 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type4165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type4166 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type4166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type4167 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type4167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type4168 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type4168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type4169 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type4169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormat? Type4170 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type4170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type4171 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type4171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type4172 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type4172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type4173 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type4173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParams? Type4174 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type4174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant12? Type4175 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type4175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type4176 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type4176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type4177 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type4177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEventType? Type4178 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type4178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type4179 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type4179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant13? Type4180 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type4180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type4181 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type4181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type4182 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type4182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type4183 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type4183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type4184 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type4184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type4185 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type4185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type4186 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type4186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type4187 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type4187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4188 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type4188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4189 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type4189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4190 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type4190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4191 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type4191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4192 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type4192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkAudioParam? Type4193 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type4193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4194 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type4194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4195 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type4195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4196 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type4196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant14? Type4197 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type4197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4198 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type4198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4199 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type4199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4200 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type4200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartedType? Type4201 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type4201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4202 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type4202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4203 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type4203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4204 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type4204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4205 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type4205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4206 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type4206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4207 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type4207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4208 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type4208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4209 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBody? Type4209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4210 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type4210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4211 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResource? Type4211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4212 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type4212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4213 { get; set; } + public global::System.Collections.Generic.IList? Type4213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItem? Type4214 { get; set; } + public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type4214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemType? Type4215 { get; set; } + public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type4215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4216 { get; set; } + public global::System.Collections.Generic.IList? Type4216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4217 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type4217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4218 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type4218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4219 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type4219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseEventType? Type4220 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type4220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsage? Type4221 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type4221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4222 { get; set; } + public global::tryAGI.OpenAI.PublicRotateSecretBody? Type4222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4223 { get; set; } + public global::tryAGI.OpenAI.PublicTestEndpointBody? Type4223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedType? Type4224 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type4224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4225 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type4225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4226 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type4226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4227 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type4227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4228 { get; set; } + public global::tryAGI.OpenAI.AgentSessionRequiredActionTypeResource? Type4228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4229 { get; set; } + public global::tryAGI.OpenAI.AgentSessionRequiredActionPayloadResource? Type4229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLiveError? Type4230 { get; set; } + public global::tryAGI.OpenAI.AgentSessionConnectPayloadResource? Type4230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveErrorEventType? Type4231 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type4231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInfoEventType? Type4232 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type4232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4233 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type4233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4234 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type4234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4235 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type4235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4236 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type4236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportRingingType? Type4237 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type4237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4238 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormat? Type4238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallError? Type4239 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type4239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4240 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type4240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailedType? Type4241 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type4241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4242 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParams? Type4242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4243 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant12? Type4243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamType? Type4244 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type4244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4245 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type4245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type4246 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartEventType? Type4246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4247 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type4247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item? Type4248 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant13? Type4248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4249 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type4249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4250 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type4250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4251 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type4251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4252 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type4252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4253 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type4253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4254 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type4254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4255 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type4255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItem? Type4256 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4256 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4257 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTool? Type4258 { get; set; } + public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextParam? Type4259 { get; set; } + public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoning? Type4260 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTruncationEnum? Type4261 { get; set; } + public global::tryAGI.OpenAI.LiveForkAudioParam? Type4261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4262 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam? Type4263 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4264 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4265 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant14? Type4265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4266 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4267 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4268 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4269 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartedType? Type4269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4270 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4271 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4272 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4273 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4274 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4275 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4276 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4277 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4278 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4279 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4280 { get; set; } + public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4281 { get; set; } + public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4282 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItem? Type4282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam2? Type4283 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemType? Type4283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4284 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4285 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4286 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningSummary? Type4287 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningContext? Type4288 { get; set; } + public global::tryAGI.OpenAI.LiveResponseEventType? Type4288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4289 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsage? Type4289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4290 { get; set; } + public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4291 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4292 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedType? Type4292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatText? Type4293 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4294 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4295 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4296 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4297 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4298 { get; set; } + public global::tryAGI.OpenAI.LiveLiveError? Type4298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4299 { get; set; } + public global::tryAGI.OpenAI.LiveErrorEventType? Type4299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionTool? Type4300 { get; set; } + public global::tryAGI.OpenAI.LiveInfoEventType? Type4300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchTool? Type4301 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerTool? Type4302 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4303 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchTool? Type4304 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPTool? Type4305 { get; set; } + public global::tryAGI.OpenAI.LiveTransportRingingType? Type4305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4306 { get; set; } + public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4307 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallError? Type4307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenTool? Type4308 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4309 { get; set; } + public global::tryAGI.OpenAI.LiveTransportFailedType? Type4309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4310 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam? Type4311 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4312 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamType? Type4312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4313 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4314 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type4314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4315 { get; set; } + public global::System.Collections.Generic.IList? Type4315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4316 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item? Type4316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4317 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4318 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4319 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4320 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4321 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocation? Type4322 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContextSize? Type4323 { get; set; } + public global::System.Collections.Generic.IList? Type4323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4324 { get; set; } + public global::tryAGI.OpenAI.BetaInputItem? Type4324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContentType? Type4325 { get; set; } + public global::System.Collections.Generic.IList? Type4325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4326 { get; set; } + public global::tryAGI.OpenAI.BetaTool? Type4326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4327 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextParam? Type4327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4328 { get; set; } + public global::tryAGI.OpenAI.BetaReasoning? Type4328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4329 { get; set; } + public global::tryAGI.OpenAI.BetaTruncationEnum? Type4329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4330 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4331 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam? Type4331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem16? Type4332 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4333 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4334 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4335 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4336 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format3? Type4337 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4338 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4339 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4340 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4341 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4342 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4343 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4344 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4345 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4346 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant15? Type4347 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4348 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4349 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4350 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4351 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam2? Type4351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4352 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4353 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4354 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4355 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningSummary? Type4355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4356 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningContext? Type4356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4357 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4358 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy4? Type4359 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4360 { get; set; } + public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4361 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatText? Type4361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4362 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4363 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4364 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem3? Type4365 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4366 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4367 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4368 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionTool? Type4368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4369 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchTool? Type4369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4370 { get; set; } + public global::tryAGI.OpenAI.BetaComputerTool? Type4370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4371 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4372 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchTool? Type4372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4373 { get; set; } + public global::tryAGI.OpenAI.BetaMCPTool? Type4373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4374 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4375 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4376 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenTool? Type4376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4377 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4378 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4379 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParam? Type4379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolType? Type4380 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4381 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4382 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4383 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4384 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4385 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4386 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4387 { get; set; } + public global::System.Collections.Generic.IList? Type4387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4388 { get; set; } + public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFidelity? Type4389 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4390 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocation? Type4390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4391 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContextSize? Type4391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4392 { get; set; } + public global::System.Collections.Generic.IList? Type4392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4393 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContentType? Type4393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4394 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4395 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4396 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy5? Type4397 { get; set; } + public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4398 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4399 { get; set; } + public global::System.Collections.Generic.IList? Type4399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolType? Type4400 { get; set; } + public global::tryAGI.OpenAI.ToolsItem17? Type4400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4401 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4402 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4403 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4404 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4405 { get; set; } + public global::tryAGI.OpenAI.Format3? Type4405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4406 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4407 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4408 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4409 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4410 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4411 { get; set; } + public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4412 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4413 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolType? Type4414 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4415 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant15? Type4415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankingOptions? Type4416 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilters? Type4417 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter? Type4418 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilter? Type4419 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4420 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4421 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem2? Type4422 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4423 { get; set; } + public global::System.Collections.Generic.IList? Type4423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4424 { get; set; } + public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankerVersionType? Type4425 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4426 { get; set; } + public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolType? Type4427 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy4? Type4427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4428 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItem? Type4429 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4430 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4431 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParam? Type4432 { get; set; } + public global::System.Collections.Generic.IList? Type4432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4433 { get; set; } + public global::tryAGI.OpenAI.SkillsItem3? Type4433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4434 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4435 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTagParam? Type4436 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4437 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4438 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4439 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4440 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4441 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage? Type4442 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage? Type4443 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4444 { get; set; } + public global::System.Collections.Generic.IList? Type4444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall? Type4445 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4446 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4447 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4448 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolType? Type4448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4449 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4450 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4451 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4452 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4453 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4454 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4455 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4456 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem? Type4457 { get; set; } + public global::tryAGI.OpenAI.BetaInputFidelity? Type4457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4458 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4459 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4460 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4461 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4462 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4463 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4464 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4465 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy5? Type4465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4466 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools? Type4467 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4468 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolType? Type4468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4469 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall? Type4470 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4471 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall? Type4472 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4473 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4474 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTag? Type4475 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4476 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCaller? Type4477 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4478 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4479 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4480 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4481 { get; set; } + public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4482 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolType? Type4482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4483 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4484 { get; set; } + public global::tryAGI.OpenAI.BetaRankingOptions? Type4484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4485 { get; set; } + public global::tryAGI.OpenAI.BetaFilters? Type4485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4486 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilter? Type4486 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4487 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilter? Type4487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4488 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent? Type4489 { get; set; } + public global::System.Collections.Generic.IList? Type4489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent? Type4490 { get; set; } + public global::tryAGI.OpenAI.FiltersItem2? Type4490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent? Type4491 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4492 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4493 { get; set; } + public global::tryAGI.OpenAI.BetaRankerVersionType? Type4493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentType? Type4494 { get; set; } + public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4495 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolType? Type4495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileInputDetail? Type4496 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4497 { get; set; } + public global::tryAGI.OpenAI.BetaItem? Type4497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentType? Type4498 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageDetail? Type4499 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentType? Type4500 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParam? Type4500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4501 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4502 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4503 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4504 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTagParam? Type4504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4505 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4506 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4507 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4508 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4509 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4510 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessage? Type4510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4511 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessage? Type4511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPError? Type4512 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4513 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCall? Type4513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4514 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4515 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4516 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4517 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4518 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4519 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4520 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4521 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4522 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4523 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4524 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4525 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItem? Type4525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4526 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4527 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4528 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4529 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4530 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4531 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4532 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4533 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4534 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4535 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListTools? Type4535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4536 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4536 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4537 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4538 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCall? Type4538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4539 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4540 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCall? Type4540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4541 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4542 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4543 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTag? Type4543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4544 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4545 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCaller? Type4545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4546 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4547 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4548 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant16? Type4549 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4550 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4551 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4552 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4553 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4554 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4555 { get; set; } + public global::System.Collections.Generic.IList? Type4555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4556 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4557 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContent? Type4557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4558 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContent? Type4558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4559 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContent? Type4559 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4560 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4561 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4562 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentType? Type4562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4563 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4564 { get; set; } + public global::tryAGI.OpenAI.BetaFileInputDetail? Type4564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4565 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4566 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentType? Type4566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4567 { get; set; } + public global::tryAGI.OpenAI.BetaImageDetail? Type4567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4568 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentType? Type4568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4569 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4570 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4571 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4572 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageBackground? Type4573 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4574 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4575 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemType? Type4576 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4577 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4578 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4579 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4580 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPError? Type4580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4581 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4582 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4583 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4584 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4585 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4586 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4587 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4588 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4589 { get; set; } + public global::System.Collections.Generic.IList? Type4589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4590 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4591 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4592 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4593 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4594 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4595 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4596 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem4? Type4597 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParam? Type4598 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4599 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4600 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4601 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4602 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4603 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4604 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4605 { get; set; } + public global::System.Collections.Generic.IList? Type4605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4606 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4607 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4607 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4608 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem6? Type4609 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4610 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4611 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4612 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4613 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4614 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4615 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4616 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDetailEnum? Type4617 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant16? Type4617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4618 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4619 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4620 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4621 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4622 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4622 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4623 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item2? Type4624 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4625 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4626 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4627 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4628 { get; set; } + public global::System.Collections.Generic.IList? Type4628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4629 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4630 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4631 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4632 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4633 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4634 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4635 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4636 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4637 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4638 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4639 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4640 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4641 { get; set; } + public global::tryAGI.OpenAI.BetaImageBackground? Type4641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4642 { get; set; } + public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4643 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4644 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemType? Type4644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4645 { get; set; } + public global::System.Collections.Generic.IList? Type4645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4646 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4647 { get; set; } + public global::System.Collections.Generic.IList? Type4647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4648 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4649 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4650 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4651 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerAction? Type4652 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4653 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4654 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParam? Type4655 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4656 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParam? Type4657 { get; set; } + public global::System.Collections.Generic.IList? Type4657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressAction? Type4658 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputTool? Type4658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParam? Type4659 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParam? Type4660 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? Type4660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParam? Type4661 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator? Type4661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParam? Type4662 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType? Type4662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParam? Type4663 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType? Type4663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4664 { get; set; } + public global::System.Collections.Generic.IList? Type4664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4665 { get; set; } + public global::tryAGI.OpenAI.ToolsItem18? Type4665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParamType? Type4666 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? Type4666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParamType? Type4667 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator? Type4667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParamType? Type4668 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type4668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4669 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType? Type4669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParamType? Type4670 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4671 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParamType? Type4672 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4673 { get; set; } + public global::System.Collections.Generic.IList? Type4673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCoordParam? Type4674 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4675 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParamType? Type4676 { get; set; } + public global::System.Collections.Generic.IList? Type4676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickButtonType? Type4677 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem4? Type4677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4678 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParam? Type4678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4679 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4680 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4681 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageType? Type4682 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4683 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4683 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4684 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4685 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase? Type4686 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4687 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent? Type4688 { get; set; } + public global::System.Collections.Generic.IList? Type4688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent? Type4689 { get; set; } + public global::tryAGI.OpenAI.ContentItem6? Type4689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4690 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4691 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContentType? Type4692 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4693 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4694 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotation? Type4695 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4696 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLogProb? Type4697 { get; set; } + public global::tryAGI.OpenAI.BetaDetailEnum? Type4697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4698 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTopLogProb? Type4699 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBody? Type4700 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4701 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4702 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePath? Type4703 { get; set; } + public global::System.Collections.Generic.IList? Type4703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4704 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item2? Type4704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4705 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePathType? Type4706 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4707 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4708 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4709 { get; set; } + public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageType? Type4710 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageRole? Type4711 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4712 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4712 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4713 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContent? Type4714 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4715 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4716 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4717 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4718 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4719 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4720 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4721 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4722 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4723 { get; set; } + public global::System.Collections.Generic.IList? Type4723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4724 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4725 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4726 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4727 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsShared? Type4728 { get; set; } + public global::System.Collections.Generic.IList? Type4728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4729 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4730 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaErrorResponse? Type4731 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaError? Type4732 { get; set; } + public global::tryAGI.OpenAI.BetaComputerAction? Type4732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4733 { get; set; } + public global::System.Collections.Generic.IList? Type4733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4734 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4735 { get; set; } + public global::tryAGI.OpenAI.BetaClickParam? Type4735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4736 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemList? Type4737 { get; set; } + public global::tryAGI.OpenAI.BetaDragParam? Type4737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4738 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressAction? Type4738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4739 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParam? Type4739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResource? Type4740 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParam? Type4740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResource? Type4741 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParam? Type4741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4742 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParam? Type4742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4743 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParam? Type4743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4744 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage? Type4745 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4746 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParamType? Type4746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4747 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParamType? Type4747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall? Type4748 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParamType? Type4748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4749 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools? Type4750 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParamType? Type4750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4751 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgram? Type4752 { get; set; } + public global::tryAGI.OpenAI.BetaDragParamType? Type4752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput? Type4753 { get; set; } + public global::System.Collections.Generic.IList? Type4753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody? Type4754 { get; set; } + public global::tryAGI.OpenAI.BetaCoordParam? Type4754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4755 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4756 { get; set; } + public global::tryAGI.OpenAI.BetaClickParamType? Type4756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4757 { get; set; } + public global::tryAGI.OpenAI.BetaClickButtonType? Type4757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4758 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4759 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4760 { get; set; } + public global::System.Collections.Generic.IList? Type4760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4761 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4762 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageType? Type4762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4763 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4764 { get; set; } + public global::System.Collections.Generic.IList? Type4764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4765 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4766 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase? Type4766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4767 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4768 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContent? Type4768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4769 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContent? Type4769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4770 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4771 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4772 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContentType? Type4772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation2? Type4773 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4774 { get; set; } + public global::System.Collections.Generic.IList? Type4774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4775 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotation? Type4775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4776 { get; set; } + public global::System.Collections.Generic.IList? Type4776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4777 { get; set; } + public global::tryAGI.OpenAI.BetaLogProb? Type4777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4778 { get; set; } + public global::System.Collections.Generic.IList? Type4778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4779 { get; set; } + public global::tryAGI.OpenAI.BetaTopLogProb? Type4779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4780 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBody? Type4780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4781 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4782 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4783 { get; set; } + public global::tryAGI.OpenAI.BetaFilePath? Type4783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4784 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4785 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome2? Type4786 { get; set; } + public global::tryAGI.OpenAI.BetaFilePathType? Type4786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4787 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4788 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4789 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4790 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageType? Type4790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4791 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageRole? Type4791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4792 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4793 { get; set; } + public global::System.Collections.Generic.IList? Type4793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4794 { get; set; } + public global::tryAGI.OpenAI.BetaInputContent? Type4794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4795 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant17? Type4796 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4797 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4798 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4799 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4800 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4801 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4802 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4803 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputType? Type4804 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4805 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramType? Type4806 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4807 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4808 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsShared? Type4808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4809 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageRole? Type4810 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4811 { get; set; } + public global::tryAGI.OpenAI.BetaErrorResponse? Type4811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4812 { get; set; } + public global::tryAGI.OpenAI.BetaError? Type4812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4813 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4814 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4815 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4816 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageType? Type4817 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemList? Type4817 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4818 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem7? Type4819 { get; set; } + public global::System.Collections.Generic.IList? Type4819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContent? Type4820 { get; set; } + public global::tryAGI.OpenAI.BetaItemResource? Type4820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4821 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResource? Type4821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent? Type4822 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4823 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4824 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4825 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessage? Type4825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4826 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContentType? Type4827 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4828 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCall? Type4828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4829 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4830 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalTools? Type4830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4831 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4832 { get; set; } + public global::tryAGI.OpenAI.BetaProgram? Type4832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4833 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutput? Type4833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4834 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBody? Type4834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4835 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4836 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4837 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4838 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResource? Type4839 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4840 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4840 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4841 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemField? Type4842 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsage? Type4843 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4844 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4845 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessage? Type4846 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4847 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4848 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageType? Type4849 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageStatus? Type4850 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4851 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem8? Type4852 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4853 { get; set; } + public global::tryAGI.OpenAI.Operation2? Type4853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4854 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase2? Type4855 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4856 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4857 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4858 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4859 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4860 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4861 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponse? Type4862 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4863 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties? Type4864 { get; set; } + public global::System.Collections.Generic.IList? Type4864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3? Type4865 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4866 { get; set; } + public global::tryAGI.OpenAI.Outcome2? Type4866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4867 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4868 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4869 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4870 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4871 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4872 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4873 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4874 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItem? Type4875 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4876 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant17? Type4876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4877 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModeration? Type4878 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConversation? Type4879 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input5? Type4880 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody? Type4881 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4882 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4883 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4884 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputType? Type4884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output9? Type4885 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4886 { get; set; } + public global::tryAGI.OpenAI.BetaProgramType? Type4886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4887 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4888 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4889 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4889 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type4890 { get; set; } + public global::tryAGI.OpenAI.BetaMessageRole? Type4890 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4891 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputType? Type4892 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4893 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4894 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4895 { get; set; } + public global::System.Collections.Generic.IList? Type4895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4896 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4897 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageType? Type4897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4898 { get; set; } + public global::System.Collections.Generic.IList? Type4898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4899 { get; set; } + public global::tryAGI.OpenAI.ContentItem7? Type4899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4900 { get; set; } + public global::tryAGI.OpenAI.BetaTextContent? Type4900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4901 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4902 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContent? Type4902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4903 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4904 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4905 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4906 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4907 { get; set; } + public global::tryAGI.OpenAI.BetaTextContentType? Type4907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptVariant1? Type4908 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4909 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4910 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4911 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4912 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4913 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4914 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4915 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4916 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4917 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4918 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4919 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResource? Type4919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type4920 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type4921 { get; set; } + public global::System.Collections.Generic.IList? Type4921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type4922 { get; set; } + public global::tryAGI.OpenAI.BetaItemField? Type4922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type4923 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsage? Type4923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type4924 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type4925 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type4926 { get; set; } + public global::tryAGI.OpenAI.BetaMessage? Type4926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type4927 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type4928 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type4929 { get; set; } + public global::tryAGI.OpenAI.BetaMessageType? Type4929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type4930 { get; set; } + public global::tryAGI.OpenAI.BetaMessageStatus? Type4930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type4931 { get; set; } + public global::System.Collections.Generic.IList? Type4931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type4932 { get; set; } + public global::tryAGI.OpenAI.ContentItem8? Type4932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type4933 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type4934 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type4935 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase2? Type4935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type4936 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type4937 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type4938 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type4939 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type4940 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type4941 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type4942 { get; set; } + public global::tryAGI.OpenAI.BetaResponse? Type4942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type4943 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type4944 { get; set; } + public global::tryAGI.OpenAI.BetaResponseProperties? Type4944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type4945 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3? Type4945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type4946 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type4947 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type4948 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type4949 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type4950 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type4951 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type4952 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type4953 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type4954 { get; set; } + public global::System.Collections.Generic.IList? Type4954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type4955 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItem? Type4955 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4956 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProb? Type4957 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4957 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4958 { get; set; } + public global::tryAGI.OpenAI.BetaModeration? Type4958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type4959 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConversation? Type4959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type4960 { get; set; } + public global::tryAGI.OpenAI.Input5? Type4960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type4961 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBody? Type4961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type4962 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type4963 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type4964 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type4965 { get; set; } + public global::tryAGI.OpenAI.Output9? Type4965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type4966 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type4967 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type4968 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type4969 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type4970 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type4970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type4971 { get; set; } + public global::System.Collections.Generic.IList? Type4971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type4972 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputType? Type4972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type4973 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type4974 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type4975 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type4976 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type4977 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type4978 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type4979 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type4980 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type4981 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type4982 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type4983 { get; set; } + public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type4984 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type4985 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type4986 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type4987 { get; set; } + public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type4988 { get; set; } + public global::tryAGI.OpenAI.BetaPromptVariant1? Type4988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type4989 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type4990 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type4991 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type4992 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type4993 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type4994 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type4995 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type4996 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type4997 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type4998 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContent? Type4999 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type5000 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type5000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type5001 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type5001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type5002 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type5002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type5003 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type5003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type5004 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type5004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type5005 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type5005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type5006 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type5006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type5007 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type5007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type5008 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type5008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type5009 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type5009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type5010 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type5010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type5011 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type5011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type5012 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type5012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type5013 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type5013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type5014 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type5014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type5015 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type5015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type5016 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type5016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type5017 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type5017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type5018 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type5018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type5019 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type5019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type5020 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type5020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type5021 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type5021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type5022 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type5022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type5023 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type5023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type5024 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type5024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type5025 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type5025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type5026 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type5026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type5027 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type5027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type5028 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type5028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type5029 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type5029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type5030 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type5030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type5031 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type5031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type5032 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type5032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type5033 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type5033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type5034 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type5034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type5035 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type5035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type5036 { get; set; } + public global::System.Collections.Generic.IList? Type5036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type5037 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProb? Type5037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type5038 { get; set; } + public global::System.Collections.Generic.IList? Type5038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInput? Type5039 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type5039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type5040 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type5040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type5041 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type5041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type5042 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type5042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type5043 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type5043 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5044 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type5044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type5045 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type5045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type5046 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type5046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type5047 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type5047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type5048 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type5048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type5049 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type5049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type5050 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type5050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type5051 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type5051 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5052 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type5052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item2? Type5053 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type5053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type5054 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type5054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type5055 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type5055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type5056 { get; set; } + public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type5056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type5057 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type5057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type5058 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type5058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type5059 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type5059 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5060 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type5060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type5061 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type5061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type5062 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type5062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type5063 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type5063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type5064 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type5064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type5065 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type5065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type5066 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type5066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type5067 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type5067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type5068 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type5068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type5069 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type5069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type5070 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type5070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type5071 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type5071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type5072 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type5072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type5073 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type5073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type5074 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type5074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type5075 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type5075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type5076 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type5076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type5077 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type5077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type5078 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type5078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type5079 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContent? Type5079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type5080 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type5080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type5081 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type5081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type5082 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type5082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type5083 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type5083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type5084 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type5084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudio? Type5085 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type5085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudioType? Type5086 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type5086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudio? Type5087 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type5087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioType? Type5088 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type5088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type5089 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type5089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type5090 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type5090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputParam? Type5091 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type5091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContent? Type5092 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type5092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaIncludeEnum? Type5093 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type5093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type5094 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type5094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5095 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type5095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type5096 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type5096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5097 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type5097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type5098 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type5098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5099 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type5099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type5100 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type5100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5101 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type5101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type5102 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type5102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type5103 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type5103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type5104 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type5104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type5105 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type5105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type5106 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type5106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type5107 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type5107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5108 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type5108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type5109 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type5109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5110 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type5110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type5111 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type5111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5112 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type5112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type5113 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type5113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5114 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type5114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type5115 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type5115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5116 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type5116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type5117 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type5117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5118 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type5118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type5119 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInput? Type5119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5120 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type5120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type5121 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type5121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5122 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type5122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type5123 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type5123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type5124 { get; set; } + public global::System.Collections.Generic.IList? Type5124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5125 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type5125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type5126 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type5126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5127 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type5127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type5128 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type5128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5129 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type5129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type5130 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type5130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5131 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type5131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type5132 { get; set; } + public global::System.Collections.Generic.IList? Type5132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type5133 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item2? Type5133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type5134 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type5134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5135 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type5135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type5136 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type5136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5137 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type5137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type5138 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type5138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5139 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type5139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type5140 { get; set; } + public global::System.Collections.Generic.IList? Type5140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5141 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type5141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type5142 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type5142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5143 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type5143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type5144 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type5144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5145 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type5145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type5146 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type5146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5147 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type5147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type5148 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type5148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5149 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type5149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type5150 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type5150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5151 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type5151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type5152 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type5152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5153 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type5153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type5154 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type5154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5155 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type5155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type5156 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type5156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5157 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type5157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type5158 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type5158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5159 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type5159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type5160 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type5160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5161 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type5161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type5162 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type5162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5163 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type5163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type5164 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type5164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5165 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudio? Type5165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type5166 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudioType? Type5166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5167 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudio? Type5167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type5168 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioType? Type5168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5169 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type5169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type5170 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type5170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5171 { get; set; } + public global::tryAGI.OpenAI.BetaInputParam? Type5171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type5172 { get; set; } + public global::tryAGI.OpenAI.BetaContent? Type5172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5173 { get; set; } + public global::tryAGI.OpenAI.BetaIncludeEnum? Type5173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type5174 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type5174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5175 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type5176 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type5176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5177 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type5178 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type5178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5179 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type5180 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type5180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5181 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type5182 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type5182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5183 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type5183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type5184 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type5184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5185 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type5185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5186 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type5186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5187 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type5187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5188 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5189 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type5189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5190 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5191 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type5191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5192 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5193 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type5193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5194 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5195 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type5195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5196 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5197 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type5197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5198 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5199 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type5199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5200 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5201 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type5201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5202 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsError? Type5203 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type5203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5204 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type5204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5205 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5206 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type5206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5207 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5208 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type5208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5209 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5210 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type5210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5211 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5212 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type5212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaErrorPayload? Type5213 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type5213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5214 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type5214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5215 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5216 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type5216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5217 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5218 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type5218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5219 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5220 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type5220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5221 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5222 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type5222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5223 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponse? Type5224 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type5224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5225 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5226 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type5226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5227 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5228 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type5228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5229 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5230 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type5230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationParam? Type5231 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5232 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type5232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5233 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContextManagementParam? Type5234 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type5234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5235 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5236 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type5236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5237 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationMode? Type5238 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type5238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5239 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5240 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type5240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5241 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5242 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type5242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5243 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5244 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type5244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type5245 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5246 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type5246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type5247 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5248 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type5248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5249 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type5250 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type5250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5251 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5252 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type5252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type5253 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5254 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type5254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5255 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5256 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type5256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5257 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5258 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type5258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type5259 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5260 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type5260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5261 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5262 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type5262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5263 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5264 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type5264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5265 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5266 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5267 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5268 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5269 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type5270 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5271 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5272 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5273 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5274 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5275 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5276 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5277 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type5278 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5279 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5280 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5281 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5282 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5283 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsError? Type5283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5284 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5285 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5286 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5287 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5288 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5289 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5290 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5291 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5292 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5293 { get; set; } + public global::tryAGI.OpenAI.BetaErrorPayload? Type5293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5294 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5295 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5296 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5297 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5298 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5299 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type5300 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5301 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type5302 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5303 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5304 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponse? Type5304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5305 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5306 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5307 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5308 { get; set; } + public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5309 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5310 { get; set; } + public global::System.Collections.Generic.IList? Type5310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5311 { get; set; } + public global::tryAGI.OpenAI.BetaModerationParam? Type5311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5312 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5313 { get; set; } + public global::System.Collections.Generic.IList? Type5313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5314 { get; set; } + public global::tryAGI.OpenAI.BetaContextManagementParam? Type5314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5315 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5316 { get; set; } + public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5317 { get; set; } + public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5318 { get; set; } + public global::tryAGI.OpenAI.BetaModerationMode? Type5318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5319 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type5320 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type5321 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type5322 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5323 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5324 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type5325 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type5325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5326 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5327 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type5327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5328 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5329 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5330 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type5330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5331 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5332 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5333 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type5333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5334 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5335 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5336 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5337 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5338 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5339 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type5339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5340 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5341 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5342 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5343 { get; set; } + public global::System.Collections.Generic.IList? Type5343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5344 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5345 { get; set; } + public global::System.Collections.Generic.IList? Type5345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5346 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5347 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5348 { get; set; } + public global::System.Collections.Generic.IList? Type5348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5349 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type5350 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type5350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteContainerResponse? Type5351 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteContainerResponseObject? Type5352 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteContainerFileResponse? Type5353 { get; set; } + public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteContainerFileResponseObject? Type5354 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type5355 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5356 { get; set; } + public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5357 { get; set; } + public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5358 { get; set; } + public global::tryAGI.OpenAI.ListRolesOrder? Type5358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteResponseResponse? Type5359 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteResponseResponseObject? Type5360 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5361 { get; set; } + public global::System.Collections.Generic.IList? Type5361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5362 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5363 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseResponse? Type5364 { get; set; } + public global::System.Collections.Generic.IList? Type5364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseResponseObject? Type5365 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5365 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5366 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5367 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5368 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5369 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5370 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5371 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5372 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5373 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5374 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5375 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5376 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5377 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5378 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5379 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type5380 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5381 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type5382 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5383 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5384 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5385 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5386 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5387 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5388 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5389 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5390 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5391 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5392 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5393 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5394 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5395 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5396 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5397 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5398 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5399 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type5400 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type5401 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type5402 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5403 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5404 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type5405 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5406 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5407 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5408 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5409 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5410 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5411 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5412 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5413 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5414 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5415 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5416 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5417 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5418 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5419 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5420 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5421 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5422 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5423 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5424 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5425 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5426 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5427 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5428 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5429 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type5430 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerResponse? Type5431 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerResponseObject? Type5432 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerFileResponse? Type5433 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerFileResponseObject? Type5434 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type5435 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5436 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5437 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5438 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteResponseResponse? Type5439 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteResponseResponseObject? Type5440 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5441 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5442 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5443 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseResponse? Type5444 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseResponseObject? Type5445 { get; set; } /// /// @@ -22418,570 +22738,618 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType230 { get; set; } + public global::System.Collections.Generic.List? ListType230 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType231 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType232 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType233 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType234 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType235 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType236 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType237 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType238 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType239 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType240 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType241 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType242 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType231 { get; set; } + public global::System.Collections.Generic.List? ListType243 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType232 { get; set; } + public global::System.Collections.Generic.List? ListType244 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType233 { get; set; } + public global::System.Collections.Generic.List? ListType245 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType234 { get; set; } + public global::System.Collections.Generic.List? ListType246 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType235 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? ListType247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType236 { get; set; } + public global::System.Collections.Generic.List? ListType248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType237 { get; set; } + public global::System.Collections.Generic.List? ListType249 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType238 { get; set; } + public global::System.Collections.Generic.List? ListType250 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType239 { get; set; } + public global::System.Collections.Generic.List? ListType251 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType240 { get; set; } + public global::System.Collections.Generic.List? ListType252 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType241 { get; set; } + public global::System.Collections.Generic.List? ListType253 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType242 { get; set; } + public global::System.Collections.Generic.List? ListType254 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType243 { get; set; } + public global::System.Collections.Generic.List? ListType255 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType244 { get; set; } + public global::System.Collections.Generic.List? ListType256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? ListType245 { get; set; } + public global::System.Collections.Generic.List? ListType257 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType246 { get; set; } + public global::System.Collections.Generic.List? ListType258 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType247 { get; set; } + public global::System.Collections.Generic.List? ListType259 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType248 { get; set; } + public global::System.Collections.Generic.List? ListType260 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType249 { get; set; } + public global::System.Collections.Generic.List? ListType261 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType250 { get; set; } + public global::System.Collections.Generic.List? ListType262 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType251 { get; set; } + public global::System.Collections.Generic.List? ListType263 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType252 { get; set; } + public global::System.Collections.Generic.List? ListType264 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType253 { get; set; } + public global::System.Collections.Generic.List? ListType265 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType254 { get; set; } + public global::System.Collections.Generic.List? ListType266 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType255 { get; set; } + public global::System.Collections.Generic.List? ListType267 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType256 { get; set; } + public global::System.Collections.Generic.List? ListType268 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType257 { get; set; } + public global::System.Collections.Generic.List? ListType269 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType258 { get; set; } + public global::System.Collections.Generic.List? ListType270 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType259 { get; set; } + public global::System.Collections.Generic.List? ListType271 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType260 { get; set; } + public global::System.Collections.Generic.List? ListType272 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType261 { get; set; } + public global::System.Collections.Generic.List? ListType273 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType262 { get; set; } + public global::System.Collections.Generic.List? ListType274 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType263 { get; set; } + public global::System.Collections.Generic.List? ListType275 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType264 { get; set; } + public global::System.Collections.Generic.List? ListType276 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType265 { get; set; } + public global::System.Collections.Generic.List? ListType277 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType266 { get; set; } + public global::System.Collections.Generic.List? ListType278 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType267 { get; set; } + public global::System.Collections.Generic.List? ListType279 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType268 { get; set; } + public global::System.Collections.Generic.List? ListType280 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType269 { get; set; } + public global::System.Collections.Generic.List? ListType281 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType270 { get; set; } + public global::System.Collections.Generic.List? ListType282 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType271 { get; set; } + public global::System.Collections.Generic.List? ListType283 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType272 { get; set; } + public global::System.Collections.Generic.List? ListType284 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType273 { get; set; } + public global::System.Collections.Generic.List? ListType285 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType274 { get; set; } + public global::System.Collections.Generic.List? ListType286 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType275 { get; set; } + public global::System.Collections.Generic.List? ListType287 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType276 { get; set; } + public global::System.Collections.Generic.List? ListType288 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType277 { get; set; } + public global::System.Collections.Generic.List? ListType289 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType278 { get; set; } + public global::System.Collections.Generic.List? ListType290 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType279 { get; set; } + public global::System.Collections.Generic.List? ListType291 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType280 { get; set; } + public global::System.Collections.Generic.List? ListType292 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType281 { get; set; } + public global::System.Collections.Generic.List? ListType293 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType282 { get; set; } + public global::System.Collections.Generic.List? ListType294 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType283 { get; set; } + public global::System.Collections.Generic.List? ListType295 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType284 { get; set; } + public global::System.Collections.Generic.List? ListType296 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType285 { get; set; } + public global::System.Collections.Generic.List? ListType297 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType286 { get; set; } + public global::System.Collections.Generic.List? ListType298 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType287 { get; set; } + public global::System.Collections.Generic.List? ListType299 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType288 { get; set; } + public global::System.Collections.Generic.List? ListType300 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType289 { get; set; } + public global::System.Collections.Generic.List? ListType301 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType290 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? ListType302 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType291 { get; set; } + public global::System.Collections.Generic.List? ListType303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? ListType292 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType304 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType293 { get; set; } + public global::System.Collections.Generic.List? ListType305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType294 { get; set; } + public global::System.Collections.Generic.List? ListType306 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType295 { get; set; } + public global::System.Collections.Generic.List? ListType307 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType296 { get; set; } + public global::System.Collections.Generic.List? ListType308 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType297 { get; set; } + public global::System.Collections.Generic.List? ListType309 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType298 { get; set; } + public global::System.Collections.Generic.List? ListType310 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType299 { get; set; } + public global::System.Collections.Generic.List? ListType311 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType300 { get; set; } + public global::System.Collections.Generic.List? ListType312 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType301 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? ListType313 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType302 { get; set; } + public global::System.Collections.Generic.List? ListType314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? ListType303 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType315 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType304 { get; set; } + public global::System.Collections.Generic.List? ListType316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType305 { get; set; } + public global::System.Collections.Generic.List? ListType317 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType306 { get; set; } + public global::System.Collections.Generic.List? ListType318 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType307 { get; set; } + public global::System.Collections.Generic.List? ListType319 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType308 { get; set; } + public global::System.Collections.Generic.List? ListType320 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType309 { get; set; } + public global::System.Collections.Generic.List? ListType321 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType310 { get; set; } + public global::System.Collections.Generic.List? ListType322 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType311 { get; set; } + public global::System.Collections.Generic.List? ListType323 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType312 { get; set; } + public global::System.Collections.Generic.List? ListType324 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType313 { get; set; } + public global::System.Collections.Generic.List? ListType325 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType314 { get; set; } + public global::System.Collections.Generic.List? ListType326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType315 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType327 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType316 { get; set; } + public global::System.Collections.Generic.List? ListType328 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType317 { get; set; } + public global::System.Collections.Generic.List? ListType329 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType318 { get; set; } + public global::System.Collections.Generic.List? ListType330 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType319 { get; set; } + public global::System.Collections.Generic.List? ListType331 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType320 { get; set; } + public global::System.Collections.Generic.List? ListType332 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType321 { get; set; } + public global::System.Collections.Generic.List? ListType333 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType322 { get; set; } + public global::System.Collections.Generic.List? ListType334 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType323 { get; set; } + public global::System.Collections.Generic.List? ListType335 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType324 { get; set; } + public global::System.Collections.Generic.List? ListType336 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType325 { get; set; } + public global::System.Collections.Generic.List? ListType337 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType326 { get; set; } + public global::System.Collections.Generic.List? ListType338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType327 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType339 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType328 { get; set; } + public global::System.Collections.Generic.List? ListType340 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType329 { get; set; } + public global::System.Collections.Generic.List? ListType341 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType330 { get; set; } + public global::System.Collections.Generic.List? ListType342 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType331 { get; set; } + public global::System.Collections.Generic.List? ListType343 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType332 { get; set; } + public global::System.Collections.Generic.List? ListType344 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType333 { get; set; } + public global::System.Collections.Generic.List? ListType345 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType334 { get; set; } + public global::System.Collections.Generic.List? ListType346 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType335 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType347 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType336 { get; set; } + public global::System.Collections.Generic.List? ListType348 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType337 { get; set; } + public global::System.Collections.Generic.List? ListType349 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType338 { get; set; } + public global::System.Collections.Generic.List? ListType350 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType339 { get; set; } + public global::System.Collections.Generic.List? ListType351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? ListType340 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? ListType352 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType341 { get; set; } + public global::System.Collections.Generic.List? ListType353 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType342 { get; set; } + public global::System.Collections.Generic.List? ListType354 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType343 { get; set; } + public global::System.Collections.Generic.List? ListType355 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType344 { get; set; } + public global::System.Collections.Generic.List? ListType356 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType345 { get; set; } + public global::System.Collections.Generic.List? ListType357 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType346 { get; set; } + public global::System.Collections.Generic.List? ListType358 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType347 { get; set; } + public global::System.Collections.Generic.List? ListType359 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType348 { get; set; } + public global::System.Collections.Generic.List? ListType360 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType349 { get; set; } + public global::System.Collections.Generic.List? ListType361 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType350 { get; set; } + public global::System.Collections.Generic.List? ListType362 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType351 { get; set; } + public global::System.Collections.Generic.List? ListType363 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType352 { get; set; } + public global::System.Collections.Generic.List? ListType364 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType353 { get; set; } + public global::System.Collections.Generic.List? ListType365 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType354 { get; set; } + public global::System.Collections.Generic.List? ListType366 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType355 { get; set; } + public global::System.Collections.Generic.List? ListType367 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType356 { get; set; } + public global::System.Collections.Generic.List? ListType368 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType357 { get; set; } + public global::System.Collections.Generic.List? ListType369 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType358 { get; set; } + public global::System.Collections.Generic.List? ListType370 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType359 { get; set; } + public global::System.Collections.Generic.List? ListType371 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType360 { get; set; } + public global::System.Collections.Generic.List? ListType372 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType361 { get; set; } + public global::System.Collections.Generic.List? ListType373 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType362 { get; set; } + public global::System.Collections.Generic.List? ListType374 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType363 { get; set; } + public global::System.Collections.Generic.List? ListType375 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType364 { get; set; } + public global::System.Collections.Generic.List? ListType376 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType365 { get; set; } + public global::System.Collections.Generic.List? ListType377 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType366 { get; set; } + public global::System.Collections.Generic.List? ListType378 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType367 { get; set; } + public global::System.Collections.Generic.List? ListType379 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType368 { get; set; } + public global::System.Collections.Generic.List? ListType380 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType369 { get; set; } + public global::System.Collections.Generic.List? ListType381 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType370 { get; set; } + public global::System.Collections.Generic.List? ListType382 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType371 { get; set; } + public global::System.Collections.Generic.List? ListType383 { get; set; } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.Json.g.cs new file mode 100644 index 000000000..a56420ed6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct AnswerResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResource), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResource?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResource?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.g.cs new file mode 100644 index 000000000..bc77ab84f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResource.g.cs @@ -0,0 +1,469 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A completed question always includes its name, including null when unnamed. + /// + public readonly partial struct AnswerResource : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AnswerResourcePredicate? Predicate { get; init; } +#else + public global::tryAGI.OpenAI.AnswerResourcePredicate? Predicate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Predicate))] +#endif + public bool IsPredicate => Predicate != null; + + /// + /// + /// + public bool TryPickPredicate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.AnswerResourcePredicate? value) + { + value = Predicate; + return IsPredicate; + } + + /// + /// + /// + public global::tryAGI.OpenAI.AnswerResourcePredicate PickPredicate() => Predicate is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Predicate' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AnswerResourceChoice? Choice { get; init; } +#else + public global::tryAGI.OpenAI.AnswerResourceChoice? Choice { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Choice))] +#endif + public bool IsChoice => Choice != null; + + /// + /// + /// + public bool TryPickChoice( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.AnswerResourceChoice? value) + { + value = Choice; + return IsChoice; + } + + /// + /// + /// + public global::tryAGI.OpenAI.AnswerResourceChoice PickChoice() => Choice is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Choice' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AnswerResourceScore? Score { get; init; } +#else + public global::tryAGI.OpenAI.AnswerResourceScore? Score { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Score))] +#endif + public bool IsScore => Score != null; + + /// + /// + /// + public bool TryPickScore( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.AnswerResourceScore? value) + { + value = Score; + return IsScore; + } + + /// + /// + /// + public global::tryAGI.OpenAI.AnswerResourceScore PickScore() => Score is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Score' but the value was {ToString()}."); + + /// + /// The host may decline one question without disclosing its refusal score. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AnswerResourceRefusal? Refusal { get; init; } +#else + public global::tryAGI.OpenAI.AnswerResourceRefusal? Refusal { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Refusal))] +#endif + public bool IsRefusal => Refusal != null; + + /// + /// + /// + public bool TryPickRefusal( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.AnswerResourceRefusal? value) + { + value = Refusal; + return IsRefusal; + } + + /// + /// + /// + public global::tryAGI.OpenAI.AnswerResourceRefusal PickRefusal() => Refusal is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AnswerResource(global::tryAGI.OpenAI.AnswerResourcePredicate value) => new AnswerResource((global::tryAGI.OpenAI.AnswerResourcePredicate?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AnswerResourcePredicate?(AnswerResource @this) => @this.Predicate; + + /// + /// + /// + public AnswerResource(global::tryAGI.OpenAI.AnswerResourcePredicate? value) + { + Predicate = value; + } + + /// + /// + /// + public static AnswerResource FromPredicate(global::tryAGI.OpenAI.AnswerResourcePredicate? value) => new AnswerResource(value); + + /// + /// + /// + public static implicit operator AnswerResource(global::tryAGI.OpenAI.AnswerResourceChoice value) => new AnswerResource((global::tryAGI.OpenAI.AnswerResourceChoice?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AnswerResourceChoice?(AnswerResource @this) => @this.Choice; + + /// + /// + /// + public AnswerResource(global::tryAGI.OpenAI.AnswerResourceChoice? value) + { + Choice = value; + } + + /// + /// + /// + public static AnswerResource FromChoice(global::tryAGI.OpenAI.AnswerResourceChoice? value) => new AnswerResource(value); + + /// + /// + /// + public static implicit operator AnswerResource(global::tryAGI.OpenAI.AnswerResourceScore value) => new AnswerResource((global::tryAGI.OpenAI.AnswerResourceScore?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AnswerResourceScore?(AnswerResource @this) => @this.Score; + + /// + /// + /// + public AnswerResource(global::tryAGI.OpenAI.AnswerResourceScore? value) + { + Score = value; + } + + /// + /// + /// + public static AnswerResource FromScore(global::tryAGI.OpenAI.AnswerResourceScore? value) => new AnswerResource(value); + + /// + /// + /// + public static implicit operator AnswerResource(global::tryAGI.OpenAI.AnswerResourceRefusal value) => new AnswerResource((global::tryAGI.OpenAI.AnswerResourceRefusal?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AnswerResourceRefusal?(AnswerResource @this) => @this.Refusal; + + /// + /// + /// + public AnswerResource(global::tryAGI.OpenAI.AnswerResourceRefusal? value) + { + Refusal = value; + } + + /// + /// + /// + public static AnswerResource FromRefusal(global::tryAGI.OpenAI.AnswerResourceRefusal? value) => new AnswerResource(value); + + /// + /// + /// + public AnswerResource( + global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? type, + global::tryAGI.OpenAI.AnswerResourcePredicate? predicate, + global::tryAGI.OpenAI.AnswerResourceChoice? choice, + global::tryAGI.OpenAI.AnswerResourceScore? score, + global::tryAGI.OpenAI.AnswerResourceRefusal? refusal + ) + { + Type = type; + + Predicate = predicate; + Choice = choice; + Score = score; + Refusal = refusal; + } + + /// + /// + /// + public object? Object => + Refusal as object ?? + Score as object ?? + Choice as object ?? + Predicate as object + ; + + /// + /// + /// + public override string? ToString() => + Predicate?.ToString() ?? + Choice?.ToString() ?? + Score?.ToString() ?? + Refusal?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPredicate && !IsChoice && !IsScore && !IsRefusal || !IsPredicate && IsChoice && !IsScore && !IsRefusal || !IsPredicate && !IsChoice && IsScore && !IsRefusal || !IsPredicate && !IsChoice && !IsScore && IsRefusal; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? predicate = null, + global::System.Func? choice = null, + global::System.Func? score = null, + global::System.Func? refusal = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0 && predicate != null) + { + return predicate(__value0); + } + else if (Choice is { } __value1 && choice != null) + { + return choice(__value1); + } + else if (Score is { } __value2 && score != null) + { + return score(__value2); + } + else if (Refusal is { } __value3 && refusal != null) + { + return refusal(__value3); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? predicate = null, + + global::System.Action? choice = null, + + global::System.Action? score = null, + + global::System.Action? refusal = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0) + { + predicate?.Invoke(__value0); + } + else if (Choice is { } __value1) + { + choice?.Invoke(__value1); + } + else if (Score is { } __value2) + { + score?.Invoke(__value2); + } + else if (Refusal is { } __value3) + { + refusal?.Invoke(__value3); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? predicate = null, + global::System.Action? choice = null, + global::System.Action? score = null, + global::System.Action? refusal = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0) + { + predicate?.Invoke(__value0); + } + else if (Choice is { } __value1) + { + choice?.Invoke(__value1); + } + else if (Score is { } __value2) + { + score?.Invoke(__value2); + } + else if (Refusal is { } __value3) + { + refusal?.Invoke(__value3); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Predicate, + typeof(global::tryAGI.OpenAI.AnswerResourcePredicate), + Choice, + typeof(global::tryAGI.OpenAI.AnswerResourceChoice), + Score, + typeof(global::tryAGI.OpenAI.AnswerResourceScore), + Refusal, + typeof(global::tryAGI.OpenAI.AnswerResourceRefusal), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(AnswerResource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Predicate, other.Predicate) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Choice, other.Choice) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Score, other.Score) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Refusal, other.Refusal) + ; + } + + /// + /// + /// + public static bool operator ==(AnswerResource obj1, AnswerResource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnswerResource obj1, AnswerResource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnswerResource o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.Json.g.cs new file mode 100644 index 000000000..130f9ec37 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AnswerResourceChoice + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceChoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResourceChoice), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResourceChoice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceChoice? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResourceChoice? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResourceChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResourceChoice; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.g.cs new file mode 100644 index 000000000..504e438fb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoice.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AnswerResourceChoice + { + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + ///
+ /// global::tryAGI.OpenAI.AnswerResourceChoiceType.Choice + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnswerResourceChoiceTypeJsonConverter))] + public global::tryAGI.OpenAI.AnswerResourceChoiceType Type { get; set; } = global::tryAGI.OpenAI.AnswerResourceChoiceType.Choice; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChoiceValueResourceJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ChoiceValueResource Choice { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("probabilities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Probabilities { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Confidence { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + /// + /// + /// + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnswerResourceChoice( + global::tryAGI.OpenAI.ChoiceValueResource choice, + global::System.Collections.Generic.IList probabilities, + double confidence, + string? name, + global::tryAGI.OpenAI.AnswerResourceChoiceType type = global::tryAGI.OpenAI.AnswerResourceChoiceType.Choice) + { + this.Type = type; + this.Name = name; + this.Choice = choice; + this.Probabilities = probabilities ?? throw new global::System.ArgumentNullException(nameof(probabilities)); + this.Confidence = confidence; + } + + /// + /// Initializes a new instance of the class. + /// + public AnswerResourceChoice() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoiceType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoiceType.g.cs new file mode 100644 index 000000000..195606ecc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceChoiceType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + ///
+ public enum AnswerResourceChoiceType + { + /// + /// + /// + Choice, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnswerResourceChoiceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnswerResourceChoiceType value) + { + return value switch + { + AnswerResourceChoiceType.Choice => "choice", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnswerResourceChoiceType? ToEnum(string value) + { + return value switch + { + "choice" => AnswerResourceChoiceType.Choice, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.Json.g.cs new file mode 100644 index 000000000..962be0c58 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AnswerResourceDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResourceDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResourceDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResourceDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.g.cs new file mode 100644 index 000000000..53de38564 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AnswerResourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnswerResourceDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnswerResourceDiscriminator( + global::tryAGI.OpenAI.AnswerResourceDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AnswerResourceDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminatorType.g.cs new file mode 100644 index 000000000..51cafd025 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceDiscriminatorType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum AnswerResourceDiscriminatorType + { + /// + /// + /// + Choice, + /// + /// + /// + Predicate, + /// + /// + /// + Refusal, + /// + /// + /// + Score, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnswerResourceDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnswerResourceDiscriminatorType value) + { + return value switch + { + AnswerResourceDiscriminatorType.Choice => "choice", + AnswerResourceDiscriminatorType.Predicate => "predicate", + AnswerResourceDiscriminatorType.Refusal => "refusal", + AnswerResourceDiscriminatorType.Score => "score", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnswerResourceDiscriminatorType? ToEnum(string value) + { + return value switch + { + "choice" => AnswerResourceDiscriminatorType.Choice, + "predicate" => AnswerResourceDiscriminatorType.Predicate, + "refusal" => AnswerResourceDiscriminatorType.Refusal, + "score" => AnswerResourceDiscriminatorType.Score, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.Json.g.cs new file mode 100644 index 000000000..edcaa38b2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AnswerResourcePredicate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourcePredicate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResourcePredicate), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResourcePredicate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourcePredicate? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResourcePredicate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResourcePredicate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResourcePredicate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.g.cs new file mode 100644 index 000000000..a9e23cb1b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicate.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AnswerResourcePredicate + { + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + ///
+ /// global::tryAGI.OpenAI.AnswerResourcePredicateType.Predicate + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnswerResourcePredicateTypeJsonConverter))] + public global::tryAGI.OpenAI.AnswerResourcePredicateType Type { get; set; } = global::tryAGI.OpenAI.AnswerResourcePredicateType.Predicate; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("probability")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Probability { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnswerResourcePredicate( + double probability, + string? name, + global::tryAGI.OpenAI.AnswerResourcePredicateType type = global::tryAGI.OpenAI.AnswerResourcePredicateType.Predicate) + { + this.Type = type; + this.Name = name; + this.Probability = probability; + } + + /// + /// Initializes a new instance of the class. + /// + public AnswerResourcePredicate() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static AnswerResourcePredicate FromProbability(double probability) + { + return new AnswerResourcePredicate + { + Probability = probability, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicateType.g.cs new file mode 100644 index 000000000..e63078a8b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourcePredicateType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + ///
+ public enum AnswerResourcePredicateType + { + /// + /// + /// + Predicate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnswerResourcePredicateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnswerResourcePredicateType value) + { + return value switch + { + AnswerResourcePredicateType.Predicate => "predicate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnswerResourcePredicateType? ToEnum(string value) + { + return value switch + { + "predicate" => AnswerResourcePredicateType.Predicate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.Json.g.cs new file mode 100644 index 000000000..433247871 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AnswerResourceRefusal + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceRefusal? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResourceRefusal), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResourceRefusal; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceRefusal? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResourceRefusal? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResourceRefusal), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResourceRefusal; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.g.cs new file mode 100644 index 000000000..23fc1e58c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusal.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The host may decline one question without disclosing its refusal score. + /// + public sealed partial class AnswerResourceRefusal + { + /// + /// The type of the object. Always `refusal`.
+ /// Default Value: refusal + ///
+ /// global::tryAGI.OpenAI.AnswerResourceRefusalType.Refusal + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnswerResourceRefusalTypeJsonConverter))] + public global::tryAGI.OpenAI.AnswerResourceRefusalType Type { get; set; } = global::tryAGI.OpenAI.AnswerResourceRefusalType.Refusal; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// The type of the object. Always `refusal`.
+ /// Default Value: refusal + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnswerResourceRefusal( + string? name, + global::tryAGI.OpenAI.AnswerResourceRefusalType type = global::tryAGI.OpenAI.AnswerResourceRefusalType.Refusal) + { + this.Type = type; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public AnswerResourceRefusal() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusalType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusalType.g.cs new file mode 100644 index 000000000..4ae571720 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceRefusalType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `refusal`.
+ /// Default Value: refusal + ///
+ public enum AnswerResourceRefusalType + { + /// + /// + /// + Refusal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnswerResourceRefusalTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnswerResourceRefusalType value) + { + return value switch + { + AnswerResourceRefusalType.Refusal => "refusal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnswerResourceRefusalType? ToEnum(string value) + { + return value switch + { + "refusal" => AnswerResourceRefusalType.Refusal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.Json.g.cs new file mode 100644 index 000000000..1ec729a8a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AnswerResourceScore + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceScore? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AnswerResourceScore), + jsonSerializerContext) as global::tryAGI.OpenAI.AnswerResourceScore; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AnswerResourceScore? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.AnswerResourceScore? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.AnswerResourceScore), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnswerResourceScore; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.g.cs new file mode 100644 index 000000000..1edbf72a3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScore.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AnswerResourceScore + { + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + ///
+ /// global::tryAGI.OpenAI.AnswerResourceScoreType.Score + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnswerResourceScoreTypeJsonConverter))] + public global::tryAGI.OpenAI.AnswerResourceScoreType Type { get; set; } = global::tryAGI.OpenAI.AnswerResourceScoreType.Score; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Score { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("probabilities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Probabilities { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Confidence { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnswerResourceScore( + double score, + global::System.Collections.Generic.IList probabilities, + double confidence, + string? name, + global::tryAGI.OpenAI.AnswerResourceScoreType type = global::tryAGI.OpenAI.AnswerResourceScoreType.Score) + { + this.Type = type; + this.Name = name; + this.Score = score; + this.Probabilities = probabilities ?? throw new global::System.ArgumentNullException(nameof(probabilities)); + this.Confidence = confidence; + } + + /// + /// Initializes a new instance of the class. + /// + public AnswerResourceScore() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScoreType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScoreType.g.cs new file mode 100644 index 000000000..8670fcf28 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnswerResourceScoreType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + ///
+ public enum AnswerResourceScoreType + { + /// + /// + /// + Score, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnswerResourceScoreTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnswerResourceScoreType value) + { + return value switch + { + AnswerResourceScoreType.Score => "score", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnswerResourceScoreType? ToEnum(string value) + { + return value switch + { + "score" => AnswerResourceScoreType.Score, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaNamespaceToolParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaNamespaceToolParam.g.cs index 5b0bcb199..4c789c21f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaNamespaceToolParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaNamespaceToolParam.g.cs @@ -36,7 +36,7 @@ public sealed partial class BetaNamespaceToolParam ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } + public required global::System.Collections.Generic.IList Tools { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -66,7 +66,7 @@ public sealed partial class BetaNamespaceToolParam public BetaNamespaceToolParam( string name, string description, - global::System.Collections.Generic.IList tools, + global::System.Collections.Generic.IList tools, global::tryAGI.OpenAI.BetaNamespaceToolParamType type = global::tryAGI.OpenAI.BetaNamespaceToolParamType.Namespace) { this.Type = type; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.Json.g.cs new file mode 100644 index 000000000..ebcbd42e9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputFunctionToolParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.g.cs new file mode 100644 index 000000000..77537db1a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParam.g.cs @@ -0,0 +1,139 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaToolSearchOutputFunctionToolParam + { + /// + /// The name of the loaded function tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::tryAGI.OpenAI.BetaEmptyModelParam? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("strict")] + public bool? Strict { get; set; } + + /// + /// Default Value: function + /// + /// global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType.Function + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputFunctionToolParamTypeJsonConverter))] + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType Type { get; set; } = global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType.Function; + + /// + /// Whether the tool response can be returned asynchronously versus immediately returned on next response creation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("async")] + public bool? Async { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// Whether this function should be deferred and discovered via tool search. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defer_loading")] + public bool? DeferLoading { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_callers")] + public global::System.Collections.Generic.IList? AllowedCallers { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The name of the loaded function tool. + /// + /// + /// + /// + /// + /// Whether the tool response can be returned asynchronously versus immediately returned on next response creation. + /// + /// + /// + /// Whether this function should be deferred and discovered via tool search. + /// + /// + /// + /// Default Value: function + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaToolSearchOutputFunctionToolParam( + string name, + string? description, + global::tryAGI.OpenAI.BetaEmptyModelParam? parameters, + bool? strict, + bool? async, + object? outputSchema, + bool? deferLoading, + global::System.Collections.Generic.IList? allowedCallers, + global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType type = global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamType.Function) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Parameters = parameters; + this.Strict = strict; + this.Type = type; + this.Async = async; + this.OutputSchema = outputSchema; + this.DeferLoading = deferLoading; + this.AllowedCallers = allowedCallers; + } + + /// + /// Initializes a new instance of the class. + /// + public BetaToolSearchOutputFunctionToolParam() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static BetaToolSearchOutputFunctionToolParam FromName(string name) + { + return new BetaToolSearchOutputFunctionToolParam + { + Name = name, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs new file mode 100644 index 000000000..95ffac57c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputFunctionToolParamOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.g.cs new file mode 100644 index 000000000..374c64f7d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs. + /// + public sealed partial class BetaToolSearchOutputFunctionToolParamOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs new file mode 100644 index 000000000..b7dd8dee9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputFunctionToolParamOutputSchema2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParamOutputSchema2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.g.cs new file mode 100644 index 000000000..8ee5de2dd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamOutputSchema2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaToolSearchOutputFunctionToolParamOutputSchema2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamType.g.cs new file mode 100644 index 000000000..4382bd7d6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputFunctionToolParamType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: function + /// + public enum BetaToolSearchOutputFunctionToolParamType + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BetaToolSearchOutputFunctionToolParamTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BetaToolSearchOutputFunctionToolParamType value) + { + return value switch + { + BetaToolSearchOutputFunctionToolParamType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BetaToolSearchOutputFunctionToolParamType? ToEnum(string value) + { + return value switch + { + "function" => BetaToolSearchOutputFunctionToolParamType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputItemParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputItemParam.g.cs index eb84bd219..d792f563d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputItemParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputItemParam.g.cs @@ -47,7 +47,7 @@ public sealed partial class BetaToolSearchOutputItemParam /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } + public required global::System.Collections.Generic.IList Tools { get; set; } /// /// @@ -82,7 +82,7 @@ public sealed partial class BetaToolSearchOutputItemParam [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BetaToolSearchOutputItemParam( - global::System.Collections.Generic.IList tools, + global::System.Collections.Generic.IList tools, global::tryAGI.OpenAI.BetaAgentTagParam? agent, string? id, string? callId, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.Json.g.cs new file mode 100644 index 000000000..96f07495f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputNamespaceToolParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.g.cs new file mode 100644 index 000000000..d25411aa1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParam.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Groups function/custom tools under a shared namespace. + /// + public sealed partial class BetaToolSearchOutputNamespaceToolParam + { + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + ///
+ /// global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType.Namespace + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamTypeJsonConverter))] + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType Type { get; set; } = global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType.Namespace; + + /// + /// The namespace name used in tool calls (for example, `crm`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// A description of the namespace shown to the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// The function/custom tools loaded inside this namespace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Tools { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The namespace name used in tool calls (for example, `crm`). + /// + /// + /// A description of the namespace shown to the model. + /// + /// + /// The function/custom tools loaded inside this namespace. + /// + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaToolSearchOutputNamespaceToolParam( + string name, + string description, + global::System.Collections.Generic.IList tools, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType type = global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamType.Namespace) + { + this.Type = type; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); + } + + /// + /// Initializes a new instance of the class. + /// + public BetaToolSearchOutputNamespaceToolParam() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs new file mode 100644 index 000000000..c5fd6855d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputNamespaceToolParamToolDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs new file mode 100644 index 000000000..4a275a102 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaToolSearchOutputNamespaceToolParamToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaToolSearchOutputNamespaceToolParamToolDiscriminator( + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public BetaToolSearchOutputNamespaceToolParamToolDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 000000000..269ef38e6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType + { + /// + /// + /// + Custom, + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BetaToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType value) + { + return value switch + { + BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom => "custom", + BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom" => BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom, + "function" => BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamType.g.cs new file mode 100644 index 000000000..458cf3356 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputNamespaceToolParamType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + ///
+ public enum BetaToolSearchOutputNamespaceToolParamType + { + /// + /// + /// + Namespace, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BetaToolSearchOutputNamespaceToolParamTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BetaToolSearchOutputNamespaceToolParamType value) + { + return value switch + { + BetaToolSearchOutputNamespaceToolParamType.Namespace => "namespace", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BetaToolSearchOutputNamespaceToolParamType? ToEnum(string value) + { + return value switch + { + "namespace" => BetaToolSearchOutputNamespaceToolParamType.Namespace, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.Json.g.cs new file mode 100644 index 000000000..641ef4083 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct BetaToolSearchOutputTool + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputTool), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputTool?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputTool? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputTool?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.g.cs new file mode 100644 index 000000000..d76d02525 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputTool.g.cs @@ -0,0 +1,1459 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A tool definition returned by a tool search output. + /// + public readonly partial struct BetaToolSearchOutputTool : global::System.IEquatable + { + /// + /// Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-calling). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaFunctionTool? Function { get; init; } +#else + public global::tryAGI.OpenAI.BetaFunctionTool? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaFunctionTool? value) + { + value = Function; + return IsFunction; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaFunctionTool PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + + /// + /// A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file-search). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaFileSearchTool? FileSearch { get; init; } +#else + public global::tryAGI.OpenAI.BetaFileSearchTool? FileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] +#endif + public bool IsFileSearch => FileSearch != null; + + /// + /// + /// + public bool TryPickFileSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaFileSearchTool? value) + { + value = FileSearch; + return IsFileSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaFileSearchTool PickFileSearch() => FileSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); + + /// + /// A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaComputerTool? Computer { get; init; } +#else + public global::tryAGI.OpenAI.BetaComputerTool? Computer { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Computer))] +#endif + public bool IsComputer => Computer != null; + + /// + /// + /// + public bool TryPickComputer( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaComputerTool? value) + { + value = Computer; + return IsComputer; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaComputerTool PickComputer() => Computer is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); + + /// + /// A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? ComputerUsePreview { get; init; } +#else + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? ComputerUsePreview { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComputerUsePreview))] +#endif + public bool IsComputerUsePreview => ComputerUsePreview != null; + + /// + /// + /// + public bool TryPickComputerUsePreview( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaComputerUsePreviewTool? value) + { + value = ComputerUsePreview; + return IsComputerUsePreview; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool PickComputerUsePreview() => ComputerUsePreview is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUsePreview' but the value was {ToString()}."); + + /// + /// Search the Internet for sources related to the prompt. Learn more about the
+ /// [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaWebSearchTool? WebSearch { get; init; } +#else + public global::tryAGI.OpenAI.BetaWebSearchTool? WebSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearch))] +#endif + public bool IsWebSearch => WebSearch != null; + + /// + /// + /// + public bool TryPickWebSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaWebSearchTool? value) + { + value = WebSearch; + return IsWebSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaWebSearchTool PickWebSearch() => WebSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); + + /// + /// Give the model access to additional tools via remote Model Context Protocol
+ /// (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp). + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaMCPTool? Mcp { get; init; } +#else + public global::tryAGI.OpenAI.BetaMCPTool? Mcp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] +#endif + public bool IsMcp => Mcp != null; + + /// + /// + /// + public bool TryPickMcp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaMCPTool? value) + { + value = Mcp; + return IsMcp; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaMCPTool PickMcp() => Mcp is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); + + /// + /// A tool that runs Python code to help generate a response to a prompt. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? CodeInterpreter { get; init; } +#else + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? CodeInterpreter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] +#endif + public bool IsCodeInterpreter => CodeInterpreter != null; + + /// + /// + /// + public bool TryPickCodeInterpreter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaCodeInterpreterTool? value) + { + value = CodeInterpreter; + return IsCodeInterpreter; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaCodeInterpreterTool PickCodeInterpreter() => CodeInterpreter is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? ProgrammaticToolCalling { get; init; } +#else + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? ProgrammaticToolCalling { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProgrammaticToolCalling))] +#endif + public bool IsProgrammaticToolCalling => ProgrammaticToolCalling != null; + + /// + /// + /// + public bool TryPickProgrammaticToolCalling( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? value) + { + value = ProgrammaticToolCalling; + return IsProgrammaticToolCalling; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); + + /// + /// A tool that generates images using the GPT image models. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaImageGenTool? ImageGeneration { get; init; } +#else + public global::tryAGI.OpenAI.BetaImageGenTool? ImageGeneration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGeneration))] +#endif + public bool IsImageGeneration => ImageGeneration != null; + + /// + /// + /// + public bool TryPickImageGeneration( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaImageGenTool? value) + { + value = ImageGeneration; + return IsImageGeneration; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaImageGenTool PickImageGeneration() => ImageGeneration is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); + + /// + /// A tool that allows the model to execute shell commands in a local environment. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaLocalShellToolParam? LocalShell { get; init; } +#else + public global::tryAGI.OpenAI.BetaLocalShellToolParam? LocalShell { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LocalShell))] +#endif + public bool IsLocalShell => LocalShell != null; + + /// + /// + /// + public bool TryPickLocalShell( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaLocalShellToolParam? value) + { + value = LocalShell; + return IsLocalShell; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaLocalShellToolParam PickLocalShell() => LocalShell is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShell' but the value was {ToString()}."); + + /// + /// A tool that allows the model to execute shell commands. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Shell { get; init; } +#else + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Shell { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shell))] +#endif + public bool IsShell => Shell != null; + + /// + /// + /// + public bool TryPickShell( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaFunctionShellToolParam? value) + { + value = Shell; + return IsShell; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaFunctionShellToolParam PickShell() => Shell is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); + + /// + /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// Groups function/custom tools under a shared namespace. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? Namespace { get; init; } +#else + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? Namespace { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Namespace))] +#endif + public bool IsNamespace => Namespace != null; + + /// + /// + /// + public bool TryPickNamespace( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? value) + { + value = Namespace; + return IsNamespace; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam PickNamespace() => Namespace is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); + + /// + /// Hosted or BYOT tool search configuration for deferred tools. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaToolSearchToolParam? ToolSearch { get; init; } +#else + public global::tryAGI.OpenAI.BetaToolSearchToolParam? ToolSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearch))] +#endif + public bool IsToolSearch => ToolSearch != null; + + /// + /// + /// + public bool TryPickToolSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaToolSearchToolParam? value) + { + value = ToolSearch; + return IsToolSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaToolSearchToolParam PickToolSearch() => ToolSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); + + /// + /// This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? WebSearchPreview { get; init; } +#else + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? WebSearchPreview { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearchPreview))] +#endif + public bool IsWebSearchPreview => WebSearchPreview != null; + + /// + /// + /// + public bool TryPickWebSearchPreview( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaWebSearchPreviewTool? value) + { + value = WebSearchPreview; + return IsWebSearchPreview; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool PickWebSearchPreview() => WebSearchPreview is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchPreview' but the value was {ToString()}."); + + /// + /// Allows the assistant to create, delete, or update files using unified diffs. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? ApplyPatch { get; init; } +#else + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? ApplyPatch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatch))] +#endif + public bool IsApplyPatch => ApplyPatch != null; + + /// + /// + /// + public bool TryPickApplyPatch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaApplyPatchToolParam? value) + { + value = ApplyPatch; + return IsApplyPatch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaApplyPatchToolParam PickApplyPatch() => ApplyPatch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFunctionTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaFunctionTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaFunctionTool?(BetaToolSearchOutputTool @this) => @this.Function; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFunctionTool? value) + { + Function = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromFunction(global::tryAGI.OpenAI.BetaFunctionTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFileSearchTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaFileSearchTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaFileSearchTool?(BetaToolSearchOutputTool @this) => @this.FileSearch; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFileSearchTool? value) + { + FileSearch = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromFileSearch(global::tryAGI.OpenAI.BetaFileSearchTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaComputerTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaComputerTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaComputerTool?(BetaToolSearchOutputTool @this) => @this.Computer; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaComputerTool? value) + { + Computer = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromComputer(global::tryAGI.OpenAI.BetaComputerTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaComputerUsePreviewTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaComputerUsePreviewTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaComputerUsePreviewTool?(BetaToolSearchOutputTool @this) => @this.ComputerUsePreview; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaComputerUsePreviewTool? value) + { + ComputerUsePreview = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromComputerUsePreview(global::tryAGI.OpenAI.BetaComputerUsePreviewTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaWebSearchTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaWebSearchTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaWebSearchTool?(BetaToolSearchOutputTool @this) => @this.WebSearch; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaWebSearchTool? value) + { + WebSearch = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromWebSearch(global::tryAGI.OpenAI.BetaWebSearchTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaMCPTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaMCPTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaMCPTool?(BetaToolSearchOutputTool @this) => @this.Mcp; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaMCPTool? value) + { + Mcp = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromMcp(global::tryAGI.OpenAI.BetaMCPTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaCodeInterpreterTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaCodeInterpreterTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaCodeInterpreterTool?(BetaToolSearchOutputTool @this) => @this.CodeInterpreter; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaCodeInterpreterTool? value) + { + CodeInterpreter = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromCodeInterpreter(global::tryAGI.OpenAI.BetaCodeInterpreterTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam?(BetaToolSearchOutputTool @this) => @this.ProgrammaticToolCalling; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? value) + { + ProgrammaticToolCalling = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromProgrammaticToolCalling(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaImageGenTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaImageGenTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaImageGenTool?(BetaToolSearchOutputTool @this) => @this.ImageGeneration; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaImageGenTool? value) + { + ImageGeneration = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromImageGeneration(global::tryAGI.OpenAI.BetaImageGenTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaLocalShellToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaLocalShellToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaLocalShellToolParam?(BetaToolSearchOutputTool @this) => @this.LocalShell; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaLocalShellToolParam? value) + { + LocalShell = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromLocalShell(global::tryAGI.OpenAI.BetaLocalShellToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFunctionShellToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaFunctionShellToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaFunctionShellToolParam?(BetaToolSearchOutputTool @this) => @this.Shell; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaFunctionShellToolParam? value) + { + Shell = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromShell(global::tryAGI.OpenAI.BetaFunctionShellToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaCustomToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaCustomToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaCustomToolParam?(BetaToolSearchOutputTool @this) => @this.Custom; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + Custom = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromCustom(global::tryAGI.OpenAI.BetaCustomToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam?(BetaToolSearchOutputTool @this) => @this.Namespace; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? value) + { + Namespace = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromNamespace(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaToolSearchToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaToolSearchToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaToolSearchToolParam?(BetaToolSearchOutputTool @this) => @this.ToolSearch; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaToolSearchToolParam? value) + { + ToolSearch = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromToolSearch(global::tryAGI.OpenAI.BetaToolSearchToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaWebSearchPreviewTool value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaWebSearchPreviewTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaWebSearchPreviewTool?(BetaToolSearchOutputTool @this) => @this.WebSearchPreview; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaWebSearchPreviewTool? value) + { + WebSearchPreview = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromWebSearchPreview(global::tryAGI.OpenAI.BetaWebSearchPreviewTool? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaApplyPatchToolParam value) => new BetaToolSearchOutputTool((global::tryAGI.OpenAI.BetaApplyPatchToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaApplyPatchToolParam?(BetaToolSearchOutputTool @this) => @this.ApplyPatch; + + /// + /// + /// + public BetaToolSearchOutputTool(global::tryAGI.OpenAI.BetaApplyPatchToolParam? value) + { + ApplyPatch = value; + } + + /// + /// + /// + public static BetaToolSearchOutputTool FromApplyPatch(global::tryAGI.OpenAI.BetaApplyPatchToolParam? value) => new BetaToolSearchOutputTool(value); + + /// + /// + /// + public BetaToolSearchOutputTool( + global::tryAGI.OpenAI.BetaFunctionTool? function, + global::tryAGI.OpenAI.BetaFileSearchTool? fileSearch, + global::tryAGI.OpenAI.BetaComputerTool? computer, + global::tryAGI.OpenAI.BetaComputerUsePreviewTool? computerUsePreview, + global::tryAGI.OpenAI.BetaWebSearchTool? webSearch, + global::tryAGI.OpenAI.BetaMCPTool? mcp, + global::tryAGI.OpenAI.BetaCodeInterpreterTool? codeInterpreter, + global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? programmaticToolCalling, + global::tryAGI.OpenAI.BetaImageGenTool? imageGeneration, + global::tryAGI.OpenAI.BetaLocalShellToolParam? localShell, + global::tryAGI.OpenAI.BetaFunctionShellToolParam? shell, + global::tryAGI.OpenAI.BetaCustomToolParam? custom, + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam? @namespace, + global::tryAGI.OpenAI.BetaToolSearchToolParam? toolSearch, + global::tryAGI.OpenAI.BetaWebSearchPreviewTool? webSearchPreview, + global::tryAGI.OpenAI.BetaApplyPatchToolParam? applyPatch + ) + { + Function = function; + FileSearch = fileSearch; + Computer = computer; + ComputerUsePreview = computerUsePreview; + WebSearch = webSearch; + Mcp = mcp; + CodeInterpreter = codeInterpreter; + ProgrammaticToolCalling = programmaticToolCalling; + ImageGeneration = imageGeneration; + LocalShell = localShell; + Shell = shell; + Custom = custom; + Namespace = @namespace; + ToolSearch = toolSearch; + WebSearchPreview = webSearchPreview; + ApplyPatch = applyPatch; + } + + /// + /// + /// + public object? Object => + ApplyPatch as object ?? + WebSearchPreview as object ?? + ToolSearch as object ?? + Namespace as object ?? + Custom as object ?? + Shell as object ?? + LocalShell as object ?? + ImageGeneration as object ?? + ProgrammaticToolCalling as object ?? + CodeInterpreter as object ?? + Mcp as object ?? + WebSearch as object ?? + ComputerUsePreview as object ?? + Computer as object ?? + FileSearch as object ?? + Function as object + ; + + /// + /// + /// + public override string? ToString() => + Function?.ToString() ?? + FileSearch?.ToString() ?? + Computer?.ToString() ?? + ComputerUsePreview?.ToString() ?? + WebSearch?.ToString() ?? + Mcp?.ToString() ?? + CodeInterpreter?.ToString() ?? + ProgrammaticToolCalling?.ToString() ?? + ImageGeneration?.ToString() ?? + LocalShell?.ToString() ?? + Shell?.ToString() ?? + Custom?.ToString() ?? + Namespace?.ToString() ?? + ToolSearch?.ToString() ?? + WebSearchPreview?.ToString() ?? + ApplyPatch?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && IsApplyPatch; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? function = null, + global::System.Func? fileSearch = null, + global::System.Func? computer = null, + global::System.Func? computerUsePreview = null, + global::System.Func? webSearch = null, + global::System.Func? mcp = null, + global::System.Func? codeInterpreter = null, + global::System.Func? programmaticToolCalling = null, + global::System.Func? imageGeneration = null, + global::System.Func? localShell = null, + global::System.Func? shell = null, + global::System.Func? custom = null, + global::System.Func? @namespace = null, + global::System.Func? toolSearch = null, + global::System.Func? webSearchPreview = null, + global::System.Func? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0 && function != null) + { + return function(__value0); + } + else if (FileSearch is { } __value1 && fileSearch != null) + { + return fileSearch(__value1); + } + else if (Computer is { } __value2 && computer != null) + { + return computer(__value2); + } + else if (ComputerUsePreview is { } __value3 && computerUsePreview != null) + { + return computerUsePreview(__value3); + } + else if (WebSearch is { } __value4 && webSearch != null) + { + return webSearch(__value4); + } + else if (Mcp is { } __value5 && mcp != null) + { + return mcp(__value5); + } + else if (CodeInterpreter is { } __value6 && codeInterpreter != null) + { + return codeInterpreter(__value6); + } + else if (ProgrammaticToolCalling is { } __value7 && programmaticToolCalling != null) + { + return programmaticToolCalling(__value7); + } + else if (ImageGeneration is { } __value8 && imageGeneration != null) + { + return imageGeneration(__value8); + } + else if (LocalShell is { } __value9 && localShell != null) + { + return localShell(__value9); + } + else if (Shell is { } __value10 && shell != null) + { + return shell(__value10); + } + else if (Custom is { } __value11 && custom != null) + { + return custom(__value11); + } + else if (Namespace is { } __value12 && @namespace != null) + { + return @namespace(__value12); + } + else if (ToolSearch is { } __value13 && toolSearch != null) + { + return toolSearch(__value13); + } + else if (WebSearchPreview is { } __value14 && webSearchPreview != null) + { + return webSearchPreview(__value14); + } + else if (ApplyPatch is { } __value15 && applyPatch != null) + { + return applyPatch(__value15); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? function = null, + + global::System.Action? fileSearch = null, + + global::System.Action? computer = null, + + global::System.Action? computerUsePreview = null, + + global::System.Action? webSearch = null, + + global::System.Action? mcp = null, + + global::System.Action? codeInterpreter = null, + + global::System.Action? programmaticToolCalling = null, + + global::System.Action? imageGeneration = null, + + global::System.Action? localShell = null, + + global::System.Action? shell = null, + + global::System.Action? custom = null, + + global::System.Action? @namespace = null, + + global::System.Action? toolSearch = null, + + global::System.Action? webSearchPreview = null, + + global::System.Action? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (FileSearch is { } __value1) + { + fileSearch?.Invoke(__value1); + } + else if (Computer is { } __value2) + { + computer?.Invoke(__value2); + } + else if (ComputerUsePreview is { } __value3) + { + computerUsePreview?.Invoke(__value3); + } + else if (WebSearch is { } __value4) + { + webSearch?.Invoke(__value4); + } + else if (Mcp is { } __value5) + { + mcp?.Invoke(__value5); + } + else if (CodeInterpreter is { } __value6) + { + codeInterpreter?.Invoke(__value6); + } + else if (ProgrammaticToolCalling is { } __value7) + { + programmaticToolCalling?.Invoke(__value7); + } + else if (ImageGeneration is { } __value8) + { + imageGeneration?.Invoke(__value8); + } + else if (LocalShell is { } __value9) + { + localShell?.Invoke(__value9); + } + else if (Shell is { } __value10) + { + shell?.Invoke(__value10); + } + else if (Custom is { } __value11) + { + custom?.Invoke(__value11); + } + else if (Namespace is { } __value12) + { + @namespace?.Invoke(__value12); + } + else if (ToolSearch is { } __value13) + { + toolSearch?.Invoke(__value13); + } + else if (WebSearchPreview is { } __value14) + { + webSearchPreview?.Invoke(__value14); + } + else if (ApplyPatch is { } __value15) + { + applyPatch?.Invoke(__value15); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? function = null, + global::System.Action? fileSearch = null, + global::System.Action? computer = null, + global::System.Action? computerUsePreview = null, + global::System.Action? webSearch = null, + global::System.Action? mcp = null, + global::System.Action? codeInterpreter = null, + global::System.Action? programmaticToolCalling = null, + global::System.Action? imageGeneration = null, + global::System.Action? localShell = null, + global::System.Action? shell = null, + global::System.Action? custom = null, + global::System.Action? @namespace = null, + global::System.Action? toolSearch = null, + global::System.Action? webSearchPreview = null, + global::System.Action? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (FileSearch is { } __value1) + { + fileSearch?.Invoke(__value1); + } + else if (Computer is { } __value2) + { + computer?.Invoke(__value2); + } + else if (ComputerUsePreview is { } __value3) + { + computerUsePreview?.Invoke(__value3); + } + else if (WebSearch is { } __value4) + { + webSearch?.Invoke(__value4); + } + else if (Mcp is { } __value5) + { + mcp?.Invoke(__value5); + } + else if (CodeInterpreter is { } __value6) + { + codeInterpreter?.Invoke(__value6); + } + else if (ProgrammaticToolCalling is { } __value7) + { + programmaticToolCalling?.Invoke(__value7); + } + else if (ImageGeneration is { } __value8) + { + imageGeneration?.Invoke(__value8); + } + else if (LocalShell is { } __value9) + { + localShell?.Invoke(__value9); + } + else if (Shell is { } __value10) + { + shell?.Invoke(__value10); + } + else if (Custom is { } __value11) + { + custom?.Invoke(__value11); + } + else if (Namespace is { } __value12) + { + @namespace?.Invoke(__value12); + } + else if (ToolSearch is { } __value13) + { + toolSearch?.Invoke(__value13); + } + else if (WebSearchPreview is { } __value14) + { + webSearchPreview?.Invoke(__value14); + } + else if (ApplyPatch is { } __value15) + { + applyPatch?.Invoke(__value15); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Function, + typeof(global::tryAGI.OpenAI.BetaFunctionTool), + FileSearch, + typeof(global::tryAGI.OpenAI.BetaFileSearchTool), + Computer, + typeof(global::tryAGI.OpenAI.BetaComputerTool), + ComputerUsePreview, + typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool), + WebSearch, + typeof(global::tryAGI.OpenAI.BetaWebSearchTool), + Mcp, + typeof(global::tryAGI.OpenAI.BetaMCPTool), + CodeInterpreter, + typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool), + ProgrammaticToolCalling, + typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam), + ImageGeneration, + typeof(global::tryAGI.OpenAI.BetaImageGenTool), + LocalShell, + typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam), + Shell, + typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam), + Custom, + typeof(global::tryAGI.OpenAI.BetaCustomToolParam), + Namespace, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParam), + ToolSearch, + typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam), + WebSearchPreview, + typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool), + ApplyPatch, + typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(BetaToolSearchOutputTool other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Computer, other.Computer) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerUsePreview, other.ComputerUsePreview) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProgrammaticToolCalling, other.ProgrammaticToolCalling) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGeneration, other.ImageGeneration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(LocalShell, other.LocalShell) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Shell, other.Shell) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Namespace, other.Namespace) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearch, other.ToolSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchPreview, other.WebSearchPreview) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatch, other.ApplyPatch) + ; + } + + /// + /// + /// + public static bool operator ==(BetaToolSearchOutputTool obj1, BetaToolSearchOutputTool obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(BetaToolSearchOutputTool obj1, BetaToolSearchOutputTool obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is BetaToolSearchOutputTool o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.Json.g.cs new file mode 100644 index 000000000..5fd8c50d7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BetaToolSearchOutputToolDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.g.cs new file mode 100644 index 000000000..6d589a927 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaToolSearchOutputToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaToolSearchOutputToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaToolSearchOutputToolDiscriminator( + global::tryAGI.OpenAI.BetaToolSearchOutputToolDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public BetaToolSearchOutputToolDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminatorType.g.cs new file mode 100644 index 000000000..9d817942a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolSearchOutputToolDiscriminatorType.g.cs @@ -0,0 +1,123 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum BetaToolSearchOutputToolDiscriminatorType + { + /// + /// + /// + ApplyPatch, + /// + /// + /// + CodeInterpreter, + /// + /// + /// + Computer, + /// + /// + /// + ComputerUsePreview, + /// + /// + /// + Custom, + /// + /// + /// + FileSearch, + /// + /// + /// + Function, + /// + /// + /// + ImageGeneration, + /// + /// + /// + LocalShell, + /// + /// + /// + Mcp, + /// + /// + /// + Namespace, + /// + /// + /// + ProgrammaticToolCalling, + /// + /// + /// + Shell, + /// + /// + /// + ToolSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BetaToolSearchOutputToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BetaToolSearchOutputToolDiscriminatorType value) + { + return value switch + { + BetaToolSearchOutputToolDiscriminatorType.ApplyPatch => "apply_patch", + BetaToolSearchOutputToolDiscriminatorType.CodeInterpreter => "code_interpreter", + BetaToolSearchOutputToolDiscriminatorType.Computer => "computer", + BetaToolSearchOutputToolDiscriminatorType.ComputerUsePreview => "computer_use_preview", + BetaToolSearchOutputToolDiscriminatorType.Custom => "custom", + BetaToolSearchOutputToolDiscriminatorType.FileSearch => "file_search", + BetaToolSearchOutputToolDiscriminatorType.Function => "function", + BetaToolSearchOutputToolDiscriminatorType.ImageGeneration => "image_generation", + BetaToolSearchOutputToolDiscriminatorType.LocalShell => "local_shell", + BetaToolSearchOutputToolDiscriminatorType.Mcp => "mcp", + BetaToolSearchOutputToolDiscriminatorType.Namespace => "namespace", + BetaToolSearchOutputToolDiscriminatorType.ProgrammaticToolCalling => "programmatic_tool_calling", + BetaToolSearchOutputToolDiscriminatorType.Shell => "shell", + BetaToolSearchOutputToolDiscriminatorType.ToolSearch => "tool_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BetaToolSearchOutputToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch" => BetaToolSearchOutputToolDiscriminatorType.ApplyPatch, + "code_interpreter" => BetaToolSearchOutputToolDiscriminatorType.CodeInterpreter, + "computer" => BetaToolSearchOutputToolDiscriminatorType.Computer, + "computer_use_preview" => BetaToolSearchOutputToolDiscriminatorType.ComputerUsePreview, + "custom" => BetaToolSearchOutputToolDiscriminatorType.Custom, + "file_search" => BetaToolSearchOutputToolDiscriminatorType.FileSearch, + "function" => BetaToolSearchOutputToolDiscriminatorType.Function, + "image_generation" => BetaToolSearchOutputToolDiscriminatorType.ImageGeneration, + "local_shell" => BetaToolSearchOutputToolDiscriminatorType.LocalShell, + "mcp" => BetaToolSearchOutputToolDiscriminatorType.Mcp, + "namespace" => BetaToolSearchOutputToolDiscriminatorType.Namespace, + "programmatic_tool_calling" => BetaToolSearchOutputToolDiscriminatorType.ProgrammaticToolCalling, + "shell" => BetaToolSearchOutputToolDiscriminatorType.Shell, + "tool_search" => BetaToolSearchOutputToolDiscriminatorType.ToolSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.Json.g.cs new file mode 100644 index 000000000..6e5d4de6e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChoiceOptionParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceOptionParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChoiceOptionParam), + jsonSerializerContext) as global::tryAGI.OpenAI.ChoiceOptionParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceOptionParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChoiceOptionParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChoiceOptionParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChoiceOptionParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.g.cs new file mode 100644 index 000000000..b81599cfa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceOptionParam.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChoiceOptionParam + { + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChoiceValueParamJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ChoiceValueParam Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChoiceOptionParam( + global::tryAGI.OpenAI.ChoiceValueParam value, + string? description) + { + this.Value = value; + this.Description = description; + } + + /// + /// Initializes a new instance of the class. + /// + public ChoiceOptionParam() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.Json.g.cs new file mode 100644 index 000000000..2c12c7f87 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChoiceProbabilityResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceProbabilityResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChoiceProbabilityResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ChoiceProbabilityResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceProbabilityResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChoiceProbabilityResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChoiceProbabilityResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChoiceProbabilityResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.g.cs new file mode 100644 index 000000000..91da250a8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceProbabilityResource.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChoiceProbabilityResource + { + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChoiceValueResourceJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ChoiceValueResource Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("probability")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Probability { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChoiceProbabilityResource( + global::tryAGI.OpenAI.ChoiceValueResource value, + double probability) + { + this.Value = value; + this.Probability = probability; + } + + /// + /// Initializes a new instance of the class. + /// + public ChoiceProbabilityResource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.Json.g.cs new file mode 100644 index 000000000..04be3b7da --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ChoiceValueParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceValueParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChoiceValueParam), + jsonSerializerContext) as global::tryAGI.OpenAI.ChoiceValueParam?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceValueParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChoiceValueParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChoiceValueParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChoiceValueParam?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.g.cs new file mode 100644 index 000000000..1e4375e21 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueParam.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + public readonly partial struct ChoiceValueParam : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ChoiceValueParamVariant1 { get; init; } +#else + public string? ChoiceValueParamVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChoiceValueParamVariant1))] +#endif + public bool IsChoiceValueParamVariant1 => ChoiceValueParamVariant1 != null; + + /// + /// + /// + public bool TryPickChoiceValueParamVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ChoiceValueParamVariant1; + return IsChoiceValueParamVariant1; + } + + /// + /// + /// + public string PickChoiceValueParamVariant1() => ChoiceValueParamVariant1 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ChoiceValueParamVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public bool? ChoiceValueParamVariant2 { get; init; } +#else + public bool? ChoiceValueParamVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChoiceValueParamVariant2))] +#endif + public bool IsChoiceValueParamVariant2 => ChoiceValueParamVariant2 != null; + + /// + /// + /// + public bool TryPickChoiceValueParamVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out bool? value) + { + value = ChoiceValueParamVariant2; + return IsChoiceValueParamVariant2; + } + + /// + /// + /// + public bool PickChoiceValueParamVariant2() => ChoiceValueParamVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ChoiceValueParamVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ChoiceValueParam(string value) => new ChoiceValueParam((string?)value); + + /// + /// + /// + public static implicit operator string?(ChoiceValueParam @this) => @this.ChoiceValueParamVariant1; + + /// + /// + /// + public ChoiceValueParam(string? value) + { + ChoiceValueParamVariant1 = value; + } + + /// + /// + /// + public static ChoiceValueParam FromChoiceValueParamVariant1(string? value) => new ChoiceValueParam(value); + + /// + /// + /// + public static implicit operator ChoiceValueParam(bool value) => new ChoiceValueParam((bool?)value); + + /// + /// + /// + public static implicit operator bool?(ChoiceValueParam @this) => @this.ChoiceValueParamVariant2; + + /// + /// + /// + public ChoiceValueParam(bool? value) + { + ChoiceValueParamVariant2 = value; + } + + /// + /// + /// + public static ChoiceValueParam FromChoiceValueParamVariant2(bool? value) => new ChoiceValueParam(value); + + /// + /// + /// + public ChoiceValueParam( + string? choiceValueParamVariant1, + bool? choiceValueParamVariant2 + ) + { + ChoiceValueParamVariant1 = choiceValueParamVariant1; + ChoiceValueParamVariant2 = choiceValueParamVariant2; + } + + /// + /// + /// + public object? Object => + ChoiceValueParamVariant2 as object ?? + ChoiceValueParamVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ChoiceValueParamVariant1?.ToString() ?? + ChoiceValueParamVariant2?.ToString().ToLowerInvariant() + ; + + /// + /// + /// + public bool Validate() + { + return IsChoiceValueParamVariant1 && !IsChoiceValueParamVariant2 || !IsChoiceValueParamVariant1 && IsChoiceValueParamVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? choiceValueParamVariant1 = null, + global::System.Func? choiceValueParamVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueParamVariant1 is { } __value0 && choiceValueParamVariant1 != null) + { + return choiceValueParamVariant1(__value0); + } + else if (ChoiceValueParamVariant2 is { } __value1 && choiceValueParamVariant2 != null) + { + return choiceValueParamVariant2(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? choiceValueParamVariant1 = null, + + global::System.Action? choiceValueParamVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueParamVariant1 is { } __value0) + { + choiceValueParamVariant1?.Invoke(__value0); + } + else if (ChoiceValueParamVariant2 is { } __value1) + { + choiceValueParamVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? choiceValueParamVariant1 = null, + global::System.Action? choiceValueParamVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueParamVariant1 is { } __value0) + { + choiceValueParamVariant1?.Invoke(__value0); + } + else if (ChoiceValueParamVariant2 is { } __value1) + { + choiceValueParamVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ChoiceValueParamVariant1, + typeof(string), + ChoiceValueParamVariant2, + typeof(bool), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ChoiceValueParam other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChoiceValueParamVariant1, other.ChoiceValueParamVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChoiceValueParamVariant2, other.ChoiceValueParamVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ChoiceValueParam obj1, ChoiceValueParam obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ChoiceValueParam obj1, ChoiceValueParam obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ChoiceValueParam o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.Json.g.cs new file mode 100644 index 000000000..e6da295ca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ChoiceValueResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceValueResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChoiceValueResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ChoiceValueResource?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChoiceValueResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChoiceValueResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChoiceValueResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChoiceValueResource?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.g.cs new file mode 100644 index 000000000..79ad6bb43 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChoiceValueResource.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Choice values are typed: a string and a boolean with the same text are distinct. + /// + public readonly partial struct ChoiceValueResource : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ChoiceValueResourceVariant1 { get; init; } +#else + public string? ChoiceValueResourceVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChoiceValueResourceVariant1))] +#endif + public bool IsChoiceValueResourceVariant1 => ChoiceValueResourceVariant1 != null; + + /// + /// + /// + public bool TryPickChoiceValueResourceVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ChoiceValueResourceVariant1; + return IsChoiceValueResourceVariant1; + } + + /// + /// + /// + public string PickChoiceValueResourceVariant1() => ChoiceValueResourceVariant1 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ChoiceValueResourceVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public bool? ChoiceValueResourceVariant2 { get; init; } +#else + public bool? ChoiceValueResourceVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChoiceValueResourceVariant2))] +#endif + public bool IsChoiceValueResourceVariant2 => ChoiceValueResourceVariant2 != null; + + /// + /// + /// + public bool TryPickChoiceValueResourceVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out bool? value) + { + value = ChoiceValueResourceVariant2; + return IsChoiceValueResourceVariant2; + } + + /// + /// + /// + public bool PickChoiceValueResourceVariant2() => ChoiceValueResourceVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ChoiceValueResourceVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ChoiceValueResource(string value) => new ChoiceValueResource((string?)value); + + /// + /// + /// + public static implicit operator string?(ChoiceValueResource @this) => @this.ChoiceValueResourceVariant1; + + /// + /// + /// + public ChoiceValueResource(string? value) + { + ChoiceValueResourceVariant1 = value; + } + + /// + /// + /// + public static ChoiceValueResource FromChoiceValueResourceVariant1(string? value) => new ChoiceValueResource(value); + + /// + /// + /// + public static implicit operator ChoiceValueResource(bool value) => new ChoiceValueResource((bool?)value); + + /// + /// + /// + public static implicit operator bool?(ChoiceValueResource @this) => @this.ChoiceValueResourceVariant2; + + /// + /// + /// + public ChoiceValueResource(bool? value) + { + ChoiceValueResourceVariant2 = value; + } + + /// + /// + /// + public static ChoiceValueResource FromChoiceValueResourceVariant2(bool? value) => new ChoiceValueResource(value); + + /// + /// + /// + public ChoiceValueResource( + string? choiceValueResourceVariant1, + bool? choiceValueResourceVariant2 + ) + { + ChoiceValueResourceVariant1 = choiceValueResourceVariant1; + ChoiceValueResourceVariant2 = choiceValueResourceVariant2; + } + + /// + /// + /// + public object? Object => + ChoiceValueResourceVariant2 as object ?? + ChoiceValueResourceVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ChoiceValueResourceVariant1?.ToString() ?? + ChoiceValueResourceVariant2?.ToString().ToLowerInvariant() + ; + + /// + /// + /// + public bool Validate() + { + return IsChoiceValueResourceVariant1 && !IsChoiceValueResourceVariant2 || !IsChoiceValueResourceVariant1 && IsChoiceValueResourceVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? choiceValueResourceVariant1 = null, + global::System.Func? choiceValueResourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueResourceVariant1 is { } __value0 && choiceValueResourceVariant1 != null) + { + return choiceValueResourceVariant1(__value0); + } + else if (ChoiceValueResourceVariant2 is { } __value1 && choiceValueResourceVariant2 != null) + { + return choiceValueResourceVariant2(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? choiceValueResourceVariant1 = null, + + global::System.Action? choiceValueResourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueResourceVariant1 is { } __value0) + { + choiceValueResourceVariant1?.Invoke(__value0); + } + else if (ChoiceValueResourceVariant2 is { } __value1) + { + choiceValueResourceVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? choiceValueResourceVariant1 = null, + global::System.Action? choiceValueResourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (ChoiceValueResourceVariant1 is { } __value0) + { + choiceValueResourceVariant1?.Invoke(__value0); + } + else if (ChoiceValueResourceVariant2 is { } __value1) + { + choiceValueResourceVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ChoiceValueResourceVariant1, + typeof(string), + ChoiceValueResourceVariant2, + typeof(bool), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ChoiceValueResource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChoiceValueResourceVariant1, other.ChoiceValueResourceVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChoiceValueResourceVariant2, other.ChoiceValueResourceVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ChoiceValueResource obj1, ChoiceValueResource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ChoiceValueResource obj1, ChoiceValueResource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ChoiceValueResource o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAgentParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAgentParams.g.cs index 37728c6eb..80e131879 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAgentParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAgentParams.g.cs @@ -52,7 +52,7 @@ public sealed partial class CreateAgentParams public string? Instructions { get; set; } /// - /// Tools available to the agent. Defaults to an empty list. + /// Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } @@ -94,7 +94,7 @@ public sealed partial class CreateAgentParams /// Additional instructions appended to the agent's default base instructions. Omit or set to null to add no custom instructions. /// /// - /// Tools available to the agent. Defaults to an empty list. + /// Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// /// /// Configuration for creating and coordinating subagents. Subagent tools are disabled by default. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.Json.g.cs new file mode 100644 index 000000000..b25370312 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct DecisionInput + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInput), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInput?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInput? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInput?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.g.cs new file mode 100644 index 000000000..d5a346140 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInput.g.cs @@ -0,0 +1,272 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request. + /// + public readonly partial struct DecisionInput : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? DecisionInputVariant1 { get; init; } +#else + public string? DecisionInputVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DecisionInputVariant1))] +#endif + public bool IsDecisionInputVariant1 => DecisionInputVariant1 != null; + + /// + /// + /// + public bool TryPickDecisionInputVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = DecisionInputVariant1; + return IsDecisionInputVariant1; + } + + /// + /// + /// + public string PickDecisionInputVariant1() => DecisionInputVariant1 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'DecisionInputVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? DecisionInputVariant2 { get; init; } +#else + public global::System.Collections.Generic.IList? DecisionInputVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DecisionInputVariant2))] +#endif + public bool IsDecisionInputVariant2 => DecisionInputVariant2 != null; + + /// + /// + /// + public bool TryPickDecisionInputVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::System.Collections.Generic.IList? value) + { + value = DecisionInputVariant2; + return IsDecisionInputVariant2; + } + + /// + /// + /// + public global::System.Collections.Generic.IList PickDecisionInputVariant2() => DecisionInputVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'DecisionInputVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator DecisionInput(string value) => new DecisionInput((string?)value); + + /// + /// + /// + public static implicit operator string?(DecisionInput @this) => @this.DecisionInputVariant1; + + /// + /// + /// + public DecisionInput(string? value) + { + DecisionInputVariant1 = value; + } + + /// + /// + /// + public static DecisionInput FromDecisionInputVariant1(string? value) => new DecisionInput(value); + + /// + /// + /// + public DecisionInput( + string? decisionInputVariant1, + global::System.Collections.Generic.IList? decisionInputVariant2 + ) + { + DecisionInputVariant1 = decisionInputVariant1; + DecisionInputVariant2 = decisionInputVariant2; + } + + /// + /// + /// + public object? Object => + DecisionInputVariant2 as object ?? + DecisionInputVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + DecisionInputVariant1?.ToString() ?? + DecisionInputVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsDecisionInputVariant1 && !IsDecisionInputVariant2 || !IsDecisionInputVariant1 && IsDecisionInputVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? decisionInputVariant1 = null, + global::System.Func, TResult>? decisionInputVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputVariant1 is { } __value0 && decisionInputVariant1 != null) + { + return decisionInputVariant1(__value0); + } + else if (DecisionInputVariant2 is { } __value1 && decisionInputVariant2 != null) + { + return decisionInputVariant2(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? decisionInputVariant1 = null, + + global::System.Action>? decisionInputVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputVariant1 is { } __value0) + { + decisionInputVariant1?.Invoke(__value0); + } + else if (DecisionInputVariant2 is { } __value1) + { + decisionInputVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? decisionInputVariant1 = null, + global::System.Action>? decisionInputVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputVariant1 is { } __value0) + { + decisionInputVariant1?.Invoke(__value0); + } + else if (DecisionInputVariant2 is { } __value1) + { + decisionInputVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + DecisionInputVariant1, + typeof(string), + DecisionInputVariant2, + typeof(global::System.Collections.Generic.IList), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(DecisionInput other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(DecisionInputVariant1, other.DecisionInputVariant1) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(DecisionInputVariant2, other.DecisionInputVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(DecisionInput obj1, DecisionInput obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(DecisionInput obj1, DecisionInput obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is DecisionInput o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.Json.g.cs new file mode 100644 index 000000000..436e4558c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct DecisionInputContent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputContent), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputContent?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContent? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputContent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputContent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputContent?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.g.cs new file mode 100644 index 000000000..c40dbdf9d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContent.g.cs @@ -0,0 +1,272 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Text evidence or an ordered list of text and inline image parts. + /// + public readonly partial struct DecisionInputContent : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? DecisionInputContentVariant1 { get; init; } +#else + public string? DecisionInputContentVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DecisionInputContentVariant1))] +#endif + public bool IsDecisionInputContentVariant1 => DecisionInputContentVariant1 != null; + + /// + /// + /// + public bool TryPickDecisionInputContentVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = DecisionInputContentVariant1; + return IsDecisionInputContentVariant1; + } + + /// + /// + /// + public string PickDecisionInputContentVariant1() => DecisionInputContentVariant1 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'DecisionInputContentVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? Parts { get; init; } +#else + public global::System.Collections.Generic.IList? Parts { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Parts))] +#endif + public bool IsParts => Parts != null; + + /// + /// + /// + public bool TryPickParts( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::System.Collections.Generic.IList? value) + { + value = Parts; + return IsParts; + } + + /// + /// + /// + public global::System.Collections.Generic.IList PickParts() => Parts is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Parts' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator DecisionInputContent(string value) => new DecisionInputContent((string?)value); + + /// + /// + /// + public static implicit operator string?(DecisionInputContent @this) => @this.DecisionInputContentVariant1; + + /// + /// + /// + public DecisionInputContent(string? value) + { + DecisionInputContentVariant1 = value; + } + + /// + /// + /// + public static DecisionInputContent FromDecisionInputContentVariant1(string? value) => new DecisionInputContent(value); + + /// + /// + /// + public DecisionInputContent( + string? decisionInputContentVariant1, + global::System.Collections.Generic.IList? parts + ) + { + DecisionInputContentVariant1 = decisionInputContentVariant1; + Parts = parts; + } + + /// + /// + /// + public object? Object => + Parts as object ?? + DecisionInputContentVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + DecisionInputContentVariant1?.ToString() ?? + Parts?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsDecisionInputContentVariant1 && !IsParts || !IsDecisionInputContentVariant1 && IsParts; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? decisionInputContentVariant1 = null, + global::System.Func, TResult>? parts = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputContentVariant1 is { } __value0 && decisionInputContentVariant1 != null) + { + return decisionInputContentVariant1(__value0); + } + else if (Parts is { } __value1 && parts != null) + { + return parts(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? decisionInputContentVariant1 = null, + + global::System.Action>? parts = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputContentVariant1 is { } __value0) + { + decisionInputContentVariant1?.Invoke(__value0); + } + else if (Parts is { } __value1) + { + parts?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? decisionInputContentVariant1 = null, + global::System.Action>? parts = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (DecisionInputContentVariant1 is { } __value0) + { + decisionInputContentVariant1?.Invoke(__value0); + } + else if (Parts is { } __value1) + { + parts?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + DecisionInputContentVariant1, + typeof(string), + Parts, + typeof(global::System.Collections.Generic.IList), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(DecisionInputContent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(DecisionInputContentVariant1, other.DecisionInputContentVariant1) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Parts, other.Parts) + ; + } + + /// + /// + /// + public static bool operator ==(DecisionInputContent obj1, DecisionInputContent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(DecisionInputContent obj1, DecisionInputContent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is DecisionInputContent o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.Json.g.cs new file mode 100644 index 000000000..7d6662445 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionInputContentPartDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputContentPartDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.g.cs new file mode 100644 index 000000000..e2adc9add --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DecisionInputContentPartDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputContentPartDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionInputContentPartDiscriminator( + global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionInputContentPartDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminatorType.g.cs new file mode 100644 index 000000000..fad630b50 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum DecisionInputContentPartDiscriminatorType + { + /// + /// + /// + InputImage, + /// + /// + /// + InputText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputContentPartDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputContentPartDiscriminatorType value) + { + return value switch + { + DecisionInputContentPartDiscriminatorType.InputImage => "input_image", + DecisionInputContentPartDiscriminatorType.InputText => "input_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputContentPartDiscriminatorType? ToEnum(string value) + { + return value switch + { + "input_image" => DecisionInputContentPartDiscriminatorType.InputImage, + "input_text" => DecisionInputContentPartDiscriminatorType.InputText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.Json.g.cs new file mode 100644 index 000000000..401331eeb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct DecisionInputContentPartsItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContentPartsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputContentPartsItem), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputContentPartsItem?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputContentPartsItem? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputContentPartsItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputContentPartsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputContentPartsItem?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.g.cs new file mode 100644 index 000000000..44f85d2ab --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputContentPartsItem.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct DecisionInputContentPartsItem : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.DecisionInputText? InputText { get; init; } +#else + public global::tryAGI.OpenAI.DecisionInputText? InputText { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputText))] +#endif + public bool IsInputText => InputText != null; + + /// + /// + /// + public bool TryPickInputText( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.DecisionInputText? value) + { + value = InputText; + return IsInputText; + } + + /// + /// + /// + public global::tryAGI.OpenAI.DecisionInputText PickInputText() => InputText is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); + + /// + /// An inline image. External URLs and file IDs are not supported. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.DecisionInputImage? InputImage { get; init; } +#else + public global::tryAGI.OpenAI.DecisionInputImage? InputImage { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputImage))] +#endif + public bool IsInputImage => InputImage != null; + + /// + /// + /// + public bool TryPickInputImage( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.DecisionInputImage? value) + { + value = InputImage; + return IsInputImage; + } + + /// + /// + /// + public global::tryAGI.OpenAI.DecisionInputImage PickInputImage() => InputImage is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator DecisionInputContentPartsItem(global::tryAGI.OpenAI.DecisionInputText value) => new DecisionInputContentPartsItem((global::tryAGI.OpenAI.DecisionInputText?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.DecisionInputText?(DecisionInputContentPartsItem @this) => @this.InputText; + + /// + /// + /// + public DecisionInputContentPartsItem(global::tryAGI.OpenAI.DecisionInputText? value) + { + InputText = value; + } + + /// + /// + /// + public static DecisionInputContentPartsItem FromInputText(global::tryAGI.OpenAI.DecisionInputText? value) => new DecisionInputContentPartsItem(value); + + /// + /// + /// + public static implicit operator DecisionInputContentPartsItem(global::tryAGI.OpenAI.DecisionInputImage value) => new DecisionInputContentPartsItem((global::tryAGI.OpenAI.DecisionInputImage?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.DecisionInputImage?(DecisionInputContentPartsItem @this) => @this.InputImage; + + /// + /// + /// + public DecisionInputContentPartsItem(global::tryAGI.OpenAI.DecisionInputImage? value) + { + InputImage = value; + } + + /// + /// + /// + public static DecisionInputContentPartsItem FromInputImage(global::tryAGI.OpenAI.DecisionInputImage? value) => new DecisionInputContentPartsItem(value); + + /// + /// + /// + public DecisionInputContentPartsItem( + global::tryAGI.OpenAI.DecisionInputContentPartDiscriminatorType? type, + global::tryAGI.OpenAI.DecisionInputText? inputText, + global::tryAGI.OpenAI.DecisionInputImage? inputImage + ) + { + Type = type; + + InputText = inputText; + InputImage = inputImage; + } + + /// + /// + /// + public object? Object => + InputImage as object ?? + InputText as object + ; + + /// + /// + /// + public override string? ToString() => + InputText?.ToString() ?? + InputImage?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsInputText && !IsInputImage || !IsInputText && IsInputImage; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? inputText = null, + global::System.Func? inputImage = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (InputText is { } __value0 && inputText != null) + { + return inputText(__value0); + } + else if (InputImage is { } __value1 && inputImage != null) + { + return inputImage(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? inputText = null, + + global::System.Action? inputImage = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (InputText is { } __value0) + { + inputText?.Invoke(__value0); + } + else if (InputImage is { } __value1) + { + inputImage?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? inputText = null, + global::System.Action? inputImage = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (InputText is { } __value0) + { + inputText?.Invoke(__value0); + } + else if (InputImage is { } __value1) + { + inputImage?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + InputText, + typeof(global::tryAGI.OpenAI.DecisionInputText), + InputImage, + typeof(global::tryAGI.OpenAI.DecisionInputImage), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(DecisionInputContentPartsItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputText, other.InputText) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputImage, other.InputImage) + ; + } + + /// + /// + /// + public static bool operator ==(DecisionInputContentPartsItem obj1, DecisionInputContentPartsItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(DecisionInputContentPartsItem obj1, DecisionInputContentPartsItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is DecisionInputContentPartsItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.Json.g.cs new file mode 100644 index 000000000..ae307ab44 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionInputImage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputImage), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputImage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputImage? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputImage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputImage), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputImage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.g.cs new file mode 100644 index 000000000..458978f44 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImage.g.cs @@ -0,0 +1,85 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// An inline image. External URLs and file IDs are not supported. + /// + public sealed partial class DecisionInputImage + { + /// + /// A base64-encoded image in a data URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ImageUrl { get; set; } + + /// + /// The image detail level, using the selected model's image profile. Defaults to auto.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("detail")] + public global::tryAGI.OpenAI.ImageDetailParam? Detail { get; set; } + + /// + /// Default Value: input_image + /// + /// global::tryAGI.OpenAI.DecisionInputImageType.InputImage + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputImageTypeJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputImageType Type { get; set; } = global::tryAGI.OpenAI.DecisionInputImageType.InputImage; + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A base64-encoded image in a data URL. + /// + /// + /// The image detail level, using the selected model's image profile. Defaults to auto.
+ /// Default Value: auto + /// + /// + /// Default Value: input_image + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionInputImage( + string imageUrl, + global::tryAGI.OpenAI.ImageDetailParam? detail, + global::tryAGI.OpenAI.DecisionInputImageType type = global::tryAGI.OpenAI.DecisionInputImageType.InputImage) + { + this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl)); + this.Detail = detail; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionInputImage() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static DecisionInputImage FromImageUrl(string imageUrl) + { + return new DecisionInputImage + { + ImageUrl = imageUrl, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImageType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImageType.g.cs new file mode 100644 index 000000000..70daa73f2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputImageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: input_image + /// + public enum DecisionInputImageType + { + /// + /// + /// + InputImage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputImageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputImageType value) + { + return value switch + { + DecisionInputImageType.InputImage => "input_image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputImageType? ToEnum(string value) + { + return value switch + { + "input_image" => DecisionInputImageType.InputImage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.Json.g.cs new file mode 100644 index 000000000..7e733f73a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionInputMessage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputMessage), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputMessage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputMessage? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputMessage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.g.cs new file mode 100644 index 000000000..617b379dd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessage.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A user message containing text or inline images. + /// + public sealed partial class DecisionInputMessage + { + /// + /// Default Value: user + /// + /// global::tryAGI.OpenAI.DecisionInputMessageRole.User + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageRoleJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputMessageRole Role { get; set; } = global::tryAGI.OpenAI.DecisionInputMessageRole.User; + + /// + /// Text evidence or an ordered list of text and inline image parts. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputContentJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.DecisionInputContent Content { get; set; } + + /// + /// Default Value: message + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputMessageTypeJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputMessageType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Text evidence or an ordered list of text and inline image parts. + /// + /// + /// Default Value: message + /// + /// + /// Default Value: user + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionInputMessage( + global::tryAGI.OpenAI.DecisionInputContent content, + global::tryAGI.OpenAI.DecisionInputMessageType? type, + global::tryAGI.OpenAI.DecisionInputMessageRole role = global::tryAGI.OpenAI.DecisionInputMessageRole.User) + { + this.Role = role; + this.Content = content; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionInputMessage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageRole.g.cs new file mode 100644 index 000000000..118be70ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageRole.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: user + /// + public enum DecisionInputMessageRole + { + /// + /// + /// + User, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputMessageRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputMessageRole value) + { + return value switch + { + DecisionInputMessageRole.User => "user", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputMessageRole? ToEnum(string value) + { + return value switch + { + "user" => DecisionInputMessageRole.User, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageType.g.cs new file mode 100644 index 000000000..020db0939 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: message + /// + public enum DecisionInputMessageType + { + /// + /// + /// + Message, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputMessageType value) + { + return value switch + { + DecisionInputMessageType.Message => "message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputMessageType? ToEnum(string value) + { + return value switch + { + "message" => DecisionInputMessageType.Message, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.Json.g.cs new file mode 100644 index 000000000..da293c289 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionInputText + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputText? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputText), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputText; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputText? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputText? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputText), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputText; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.g.cs new file mode 100644 index 000000000..fa70e5768 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputText.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DecisionInputText + { + /// + /// Default Value: input_text + /// + /// global::tryAGI.OpenAI.DecisionInputTextType.InputText + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputTextTypeJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputTextType Type { get; set; } = global::tryAGI.OpenAI.DecisionInputTextType.InputText; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Default Value: input_text + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionInputText( + string text, + global::tryAGI.OpenAI.DecisionInputTextType type = global::tryAGI.OpenAI.DecisionInputTextType.InputText) + { + this.Type = type; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionInputText() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static DecisionInputText FromText(string text) + { + return new DecisionInputText + { + Text = text, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputTextType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputTextType.g.cs new file mode 100644 index 000000000..db74cf233 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputTextType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: input_text + /// + public enum DecisionInputTextType + { + /// + /// + /// + InputText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputTextTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputTextType value) + { + return value switch + { + DecisionInputTextType.InputText => "input_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputTextType? ToEnum(string value) + { + return value switch + { + "input_text" => DecisionInputTextType.InputText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.Json.g.cs new file mode 100644 index 000000000..513452b50 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct DecisionInputVariant2Item + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputVariant2Item), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputVariant2Item?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputVariant2Item? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputVariant2Item), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputVariant2Item?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.g.cs new file mode 100644 index 000000000..5b2dc33c8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2Item.g.cs @@ -0,0 +1,220 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct DecisionInputVariant2Item : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? Type { get; } + + /// + /// A user message containing text or inline images. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.DecisionInputMessage? Message { get; init; } +#else + public global::tryAGI.OpenAI.DecisionInputMessage? Message { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Message))] +#endif + public bool IsMessage => Message != null; + + /// + /// + /// + public bool TryPickMessage( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.DecisionInputMessage? value) + { + value = Message; + return IsMessage; + } + + /// + /// + /// + public global::tryAGI.OpenAI.DecisionInputMessage PickMessage() => Message is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator DecisionInputVariant2Item(global::tryAGI.OpenAI.DecisionInputMessage value) => new DecisionInputVariant2Item((global::tryAGI.OpenAI.DecisionInputMessage?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.DecisionInputMessage?(DecisionInputVariant2Item @this) => @this.Message; + + /// + /// + /// + public DecisionInputVariant2Item(global::tryAGI.OpenAI.DecisionInputMessage? value) + { + Message = value; + } + + /// + /// + /// + public static DecisionInputVariant2Item FromMessage(global::tryAGI.OpenAI.DecisionInputMessage? value) => new DecisionInputVariant2Item(value); + + /// + /// + /// + public DecisionInputVariant2Item( + global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? type, + global::tryAGI.OpenAI.DecisionInputMessage? message + ) + { + Type = type; + + Message = message; + } + + /// + /// + /// + public object? Object => + Message as object + ; + + /// + /// + /// + public override string? ToString() => + Message?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessage; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? message = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Message is { } __value0 && message != null) + { + return message(__value0); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? message = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Message is { } __value0) + { + message?.Invoke(__value0); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? message = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Message is { } __value0) + { + message?.Invoke(__value0); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Message, + typeof(global::tryAGI.OpenAI.DecisionInputMessage), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(DecisionInputVariant2Item other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Message, other.Message) + ; + } + + /// + /// + /// + public static bool operator ==(DecisionInputVariant2Item obj1, DecisionInputVariant2Item obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(DecisionInputVariant2Item obj1, DecisionInputVariant2Item obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is DecisionInputVariant2Item o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.Json.g.cs new file mode 100644 index 000000000..62add1e4b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionInputVariant2ItemDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.g.cs new file mode 100644 index 000000000..78e08e11b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DecisionInputVariant2ItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputVariant2ItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionInputVariant2ItemDiscriminator( + global::tryAGI.OpenAI.DecisionInputVariant2ItemDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionInputVariant2ItemDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminatorType.g.cs new file mode 100644 index 000000000..63fedbe53 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionInputVariant2ItemDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum DecisionInputVariant2ItemDiscriminatorType + { + /// + /// + /// + Message, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DecisionInputVariant2ItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DecisionInputVariant2ItemDiscriminatorType value) + { + return value switch + { + DecisionInputVariant2ItemDiscriminatorType.Message => "message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DecisionInputVariant2ItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "message" => DecisionInputVariant2ItemDiscriminatorType.Message, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.Json.g.cs new file mode 100644 index 000000000..aba0f848b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionRequest), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.g.cs new file mode 100644 index 000000000..f9029050f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionRequest.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DecisionRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.DecisionInput Input { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("questions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Questions { get; set; } + + /// + /// Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("safety_identifier")] + public string? SafetyIdentifier { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request. + /// + /// + /// + /// Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionRequest( + string model, + global::tryAGI.OpenAI.DecisionInput input, + global::System.Collections.Generic.IList questions, + string? safetyIdentifier) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Input = input; + this.Questions = questions ?? throw new global::System.ArgumentNullException(nameof(questions)); + this.SafetyIdentifier = safetyIdentifier; + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.Json.g.cs new file mode 100644 index 000000000..2067a25ee --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DecisionResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DecisionResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.DecisionResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DecisionResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DecisionResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DecisionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DecisionResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.g.cs new file mode 100644 index 000000000..ae196b29f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DecisionResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DecisionResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("answers")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Answers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ResponseUsageResource Usage { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DecisionResponse( + string model, + global::System.Collections.Generic.IList answers, + global::tryAGI.OpenAI.ResponseUsageResource usage) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Answers = answers ?? throw new global::System.ArgumentNullException(nameof(answers)); + this.Usage = usage ?? throw new global::System.ArgumentNullException(nameof(usage)); + } + + /// + /// Initializes a new instance of the class. + /// + public DecisionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageDetailParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageDetailParam.g.cs new file mode 100644 index 000000000..1cd42c4f1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageDetailParam.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ImageDetailParam + { + /// + /// + /// + Auto, + /// + /// + /// + High, + /// + /// + /// + Low, + /// + /// + /// + Original, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageDetailParamExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageDetailParam value) + { + return value switch + { + ImageDetailParam.Auto => "auto", + ImageDetailParam.High => "high", + ImageDetailParam.Low => "low", + ImageDetailParam.Original => "original", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageDetailParam? ToEnum(string value) + { + return value switch + { + "auto" => ImageDetailParam.Auto, + "high" => ImageDetailParam.High, + "low" => ImageDetailParam.Low, + "original" => ImageDetailParam.Original, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource.g.cs index 16735c6db..5e2bcba66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource.g.cs @@ -4,17 +4,24 @@ namespace tryAGI.OpenAI { /// - /// A breakdown of input token usage for a session or turn. + /// /// public sealed partial class InputTokensDetailsResource { /// - /// The number of input tokens retrieved from the prompt cache. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] [global::System.Text.Json.Serialization.JsonRequired] public required long CachedTokens { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_write_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long CacheWriteTokens { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,16 +31,17 @@ public sealed partial class InputTokensDetailsResource /// /// Initializes a new instance of the class. /// - /// - /// The number of input tokens retrieved from the prompt cache. - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputTokensDetailsResource( - long cachedTokens) + long cachedTokens, + long cacheWriteTokens) { this.CachedTokens = cachedTokens; + this.CacheWriteTokens = cacheWriteTokens; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.Json.g.cs new file mode 100644 index 000000000..77bec41aa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class InputTokensDetailsResource2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.InputTokensDetailsResource2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.InputTokensDetailsResource2), + jsonSerializerContext) as global::tryAGI.OpenAI.InputTokensDetailsResource2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.InputTokensDetailsResource2? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.InputTokensDetailsResource2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.InputTokensDetailsResource2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.InputTokensDetailsResource2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.g.cs new file mode 100644 index 000000000..27cf4aa1f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputTokensDetailsResource2.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A breakdown of input token usage for a session or turn. + /// + public sealed partial class InputTokensDetailsResource2 + { + /// + /// The number of input tokens retrieved from the prompt cache. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long CachedTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The number of input tokens retrieved from the prompt cache. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public InputTokensDetailsResource2( + long cachedTokens) + { + this.CachedTokens = cachedTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public InputTokensDetailsResource2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.Json.g.cs new file mode 100644 index 000000000..2aecc7a68 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ListVaultCredentialsMetadata + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ListVaultCredentialsMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ListVaultCredentialsMetadata), + jsonSerializerContext) as global::tryAGI.OpenAI.ListVaultCredentialsMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ListVaultCredentialsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ListVaultCredentialsMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ListVaultCredentialsMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ListVaultCredentialsMetadata; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.g.cs new file mode 100644 index 000000000..d7f88b110 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultCredentialsMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ListVaultCredentialsMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.Json.g.cs new file mode 100644 index 000000000..9f7bc23fe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ListVaultsMetadata + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ListVaultsMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ListVaultsMetadata), + jsonSerializerContext) as global::tryAGI.OpenAI.ListVaultsMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ListVaultsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ListVaultsMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ListVaultsMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ListVaultsMetadata; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.g.cs new file mode 100644 index 000000000..479e169cc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListVaultsMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ListVaultsMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsInputParam.g.cs index 03d8a816c..52d43f0b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsInputParam.g.cs @@ -49,7 +49,7 @@ public sealed partial class LiveResponsesDelegationSettingsInputParam /// Tools available to the Responses backend while it handles tasks delegated by the Live model. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Controls which tool the Responses backend uses when handling a task delegated by the Live model. @@ -98,7 +98,7 @@ public LiveResponsesDelegationSettingsInputParam( global::tryAGI.OpenAI.LiveResponsesServiceTier? serviceTier, global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? reasoning, global::tryAGI.OpenAI.LiveDelegationTextInputParam? text, - global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? tools, global::tryAGI.OpenAI.OneOf? toolChoice, bool? parallelToolCalls) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsUpdateInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsUpdateInputParam.g.cs index 7a6070b83..7c0517ded 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsUpdateInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveResponsesDelegationSettingsUpdateInputParam.g.cs @@ -48,7 +48,7 @@ public sealed partial class LiveResponsesDelegationSettingsUpdateInputParam /// Tools available to the Responses backend while it handles tasks delegated by the Live model. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Controls which tool the Responses backend uses when handling a task delegated by the Live model. @@ -97,7 +97,7 @@ public LiveResponsesDelegationSettingsUpdateInputParam( global::tryAGI.OpenAI.LiveResponsesServiceTier? serviceTier, global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? reasoning, global::tryAGI.OpenAI.LiveDelegationTextInputParam? text, - global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? tools, global::tryAGI.OpenAI.OneOf? toolChoice, bool? parallelToolCalls) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource.g.cs index 7516c2949..c8c6d1fb5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// A breakdown of output token usage for a session or turn. + /// /// public sealed partial class OutputTokensDetailsResource { /// - /// The number of output tokens used for reasoning. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_tokens")] [global::System.Text.Json.Serialization.JsonRequired] @@ -24,9 +24,7 @@ public sealed partial class OutputTokensDetailsResource /// /// Initializes a new instance of the class. /// - /// - /// The number of output tokens used for reasoning. - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.Json.g.cs new file mode 100644 index 000000000..b27c6a091 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class OutputTokensDetailsResource2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OutputTokensDetailsResource2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.OutputTokensDetailsResource2), + jsonSerializerContext) as global::tryAGI.OpenAI.OutputTokensDetailsResource2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.OutputTokensDetailsResource2? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.OutputTokensDetailsResource2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.OutputTokensDetailsResource2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OutputTokensDetailsResource2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.g.cs new file mode 100644 index 000000000..4799b2bcf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputTokensDetailsResource2.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A breakdown of output token usage for a session or turn. + /// + public sealed partial class OutputTokensDetailsResource2 + { + /// + /// The number of output tokens used for reasoning. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long ReasoningTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The number of output tokens used for reasoning. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OutputTokensDetailsResource2( + long reasoningTokens) + { + this.ReasoningTokens = reasoningTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputTokensDetailsResource2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.Json.g.cs new file mode 100644 index 000000000..ae6835ce4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct QuestionParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.QuestionParam), + jsonSerializerContext) as global::tryAGI.OpenAI.QuestionParam?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.QuestionParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.QuestionParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.QuestionParam?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.g.cs new file mode 100644 index 000000000..308fd1656 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParam.g.cs @@ -0,0 +1,386 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A question about the request's input, with an optional correlation name. + /// + public readonly partial struct QuestionParam : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.QuestionParamDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.QuestionParamPredicate? Predicate { get; init; } +#else + public global::tryAGI.OpenAI.QuestionParamPredicate? Predicate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Predicate))] +#endif + public bool IsPredicate => Predicate != null; + + /// + /// + /// + public bool TryPickPredicate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.QuestionParamPredicate? value) + { + value = Predicate; + return IsPredicate; + } + + /// + /// + /// + public global::tryAGI.OpenAI.QuestionParamPredicate PickPredicate() => Predicate is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Predicate' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.QuestionParamChoice? Choice { get; init; } +#else + public global::tryAGI.OpenAI.QuestionParamChoice? Choice { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Choice))] +#endif + public bool IsChoice => Choice != null; + + /// + /// + /// + public bool TryPickChoice( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.QuestionParamChoice? value) + { + value = Choice; + return IsChoice; + } + + /// + /// + /// + public global::tryAGI.OpenAI.QuestionParamChoice PickChoice() => Choice is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Choice' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.QuestionParamScore? Score { get; init; } +#else + public global::tryAGI.OpenAI.QuestionParamScore? Score { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Score))] +#endif + public bool IsScore => Score != null; + + /// + /// + /// + public bool TryPickScore( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.QuestionParamScore? value) + { + value = Score; + return IsScore; + } + + /// + /// + /// + public global::tryAGI.OpenAI.QuestionParamScore PickScore() => Score is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Score' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator QuestionParam(global::tryAGI.OpenAI.QuestionParamPredicate value) => new QuestionParam((global::tryAGI.OpenAI.QuestionParamPredicate?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.QuestionParamPredicate?(QuestionParam @this) => @this.Predicate; + + /// + /// + /// + public QuestionParam(global::tryAGI.OpenAI.QuestionParamPredicate? value) + { + Predicate = value; + } + + /// + /// + /// + public static QuestionParam FromPredicate(global::tryAGI.OpenAI.QuestionParamPredicate? value) => new QuestionParam(value); + + /// + /// + /// + public static implicit operator QuestionParam(global::tryAGI.OpenAI.QuestionParamChoice value) => new QuestionParam((global::tryAGI.OpenAI.QuestionParamChoice?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.QuestionParamChoice?(QuestionParam @this) => @this.Choice; + + /// + /// + /// + public QuestionParam(global::tryAGI.OpenAI.QuestionParamChoice? value) + { + Choice = value; + } + + /// + /// + /// + public static QuestionParam FromChoice(global::tryAGI.OpenAI.QuestionParamChoice? value) => new QuestionParam(value); + + /// + /// + /// + public static implicit operator QuestionParam(global::tryAGI.OpenAI.QuestionParamScore value) => new QuestionParam((global::tryAGI.OpenAI.QuestionParamScore?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.QuestionParamScore?(QuestionParam @this) => @this.Score; + + /// + /// + /// + public QuestionParam(global::tryAGI.OpenAI.QuestionParamScore? value) + { + Score = value; + } + + /// + /// + /// + public static QuestionParam FromScore(global::tryAGI.OpenAI.QuestionParamScore? value) => new QuestionParam(value); + + /// + /// + /// + public QuestionParam( + global::tryAGI.OpenAI.QuestionParamDiscriminatorType? type, + global::tryAGI.OpenAI.QuestionParamPredicate? predicate, + global::tryAGI.OpenAI.QuestionParamChoice? choice, + global::tryAGI.OpenAI.QuestionParamScore? score + ) + { + Type = type; + + Predicate = predicate; + Choice = choice; + Score = score; + } + + /// + /// + /// + public object? Object => + Score as object ?? + Choice as object ?? + Predicate as object + ; + + /// + /// + /// + public override string? ToString() => + Predicate?.ToString() ?? + Choice?.ToString() ?? + Score?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPredicate && !IsChoice && !IsScore || !IsPredicate && IsChoice && !IsScore || !IsPredicate && !IsChoice && IsScore; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? predicate = null, + global::System.Func? choice = null, + global::System.Func? score = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0 && predicate != null) + { + return predicate(__value0); + } + else if (Choice is { } __value1 && choice != null) + { + return choice(__value1); + } + else if (Score is { } __value2 && score != null) + { + return score(__value2); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? predicate = null, + + global::System.Action? choice = null, + + global::System.Action? score = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0) + { + predicate?.Invoke(__value0); + } + else if (Choice is { } __value1) + { + choice?.Invoke(__value1); + } + else if (Score is { } __value2) + { + score?.Invoke(__value2); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? predicate = null, + global::System.Action? choice = null, + global::System.Action? score = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Predicate is { } __value0) + { + predicate?.Invoke(__value0); + } + else if (Choice is { } __value1) + { + choice?.Invoke(__value1); + } + else if (Score is { } __value2) + { + score?.Invoke(__value2); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Predicate, + typeof(global::tryAGI.OpenAI.QuestionParamPredicate), + Choice, + typeof(global::tryAGI.OpenAI.QuestionParamChoice), + Score, + typeof(global::tryAGI.OpenAI.QuestionParamScore), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(QuestionParam other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Predicate, other.Predicate) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Choice, other.Choice) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Score, other.Score) + ; + } + + /// + /// + /// + public static bool operator ==(QuestionParam obj1, QuestionParam obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(QuestionParam obj1, QuestionParam obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is QuestionParam o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.Json.g.cs new file mode 100644 index 000000000..53e6cc05d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class QuestionParamChoice + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamChoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.QuestionParamChoice), + jsonSerializerContext) as global::tryAGI.OpenAI.QuestionParamChoice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamChoice? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.QuestionParamChoice? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.QuestionParamChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.QuestionParamChoice; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs new file mode 100644 index 000000000..dd45c332f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class QuestionParamChoice + { + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + ///
+ /// global::tryAGI.OpenAI.QuestionParamChoiceType.Choice + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.QuestionParamChoiceTypeJsonConverter))] + public global::tryAGI.OpenAI.QuestionParamChoiceType Type { get; set; } = global::tryAGI.OpenAI.QuestionParamChoiceType.Choice; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("choices")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Choices { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QuestionParamChoice( + string instructions, + global::System.Collections.Generic.IList choices, + string? name, + global::tryAGI.OpenAI.QuestionParamChoiceType type = global::tryAGI.OpenAI.QuestionParamChoiceType.Choice) + { + this.Type = type; + this.Name = name; + this.Instructions = instructions ?? throw new global::System.ArgumentNullException(nameof(instructions)); + this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices)); + } + + /// + /// Initializes a new instance of the class. + /// + public QuestionParamChoice() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoiceType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoiceType.g.cs new file mode 100644 index 000000000..5358b3918 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoiceType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `choice`.
+ /// Default Value: choice + ///
+ public enum QuestionParamChoiceType + { + /// + /// + /// + Choice, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QuestionParamChoiceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QuestionParamChoiceType value) + { + return value switch + { + QuestionParamChoiceType.Choice => "choice", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QuestionParamChoiceType? ToEnum(string value) + { + return value switch + { + "choice" => QuestionParamChoiceType.Choice, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.Json.g.cs new file mode 100644 index 000000000..f7eea165c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class QuestionParamDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.QuestionParamDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.QuestionParamDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.QuestionParamDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.QuestionParamDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.QuestionParamDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.g.cs new file mode 100644 index 000000000..2243e3aaf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class QuestionParamDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.QuestionParamDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.QuestionParamDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QuestionParamDiscriminator( + global::tryAGI.OpenAI.QuestionParamDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public QuestionParamDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminatorType.g.cs new file mode 100644 index 000000000..81ae832dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum QuestionParamDiscriminatorType + { + /// + /// + /// + Choice, + /// + /// + /// + Predicate, + /// + /// + /// + Score, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QuestionParamDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QuestionParamDiscriminatorType value) + { + return value switch + { + QuestionParamDiscriminatorType.Choice => "choice", + QuestionParamDiscriminatorType.Predicate => "predicate", + QuestionParamDiscriminatorType.Score => "score", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QuestionParamDiscriminatorType? ToEnum(string value) + { + return value switch + { + "choice" => QuestionParamDiscriminatorType.Choice, + "predicate" => QuestionParamDiscriminatorType.Predicate, + "score" => QuestionParamDiscriminatorType.Score, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.Json.g.cs new file mode 100644 index 000000000..e909ca3db --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class QuestionParamPredicate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamPredicate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.QuestionParamPredicate), + jsonSerializerContext) as global::tryAGI.OpenAI.QuestionParamPredicate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamPredicate? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.QuestionParamPredicate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.QuestionParamPredicate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.QuestionParamPredicate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.g.cs new file mode 100644 index 000000000..9223ee274 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicate.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class QuestionParamPredicate + { + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + ///
+ /// global::tryAGI.OpenAI.QuestionParamPredicateType.Predicate + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.QuestionParamPredicateTypeJsonConverter))] + public global::tryAGI.OpenAI.QuestionParamPredicateType Type { get; set; } = global::tryAGI.OpenAI.QuestionParamPredicateType.Predicate; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Instructions { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QuestionParamPredicate( + string instructions, + string? name, + global::tryAGI.OpenAI.QuestionParamPredicateType type = global::tryAGI.OpenAI.QuestionParamPredicateType.Predicate) + { + this.Type = type; + this.Name = name; + this.Instructions = instructions ?? throw new global::System.ArgumentNullException(nameof(instructions)); + } + + /// + /// Initializes a new instance of the class. + /// + public QuestionParamPredicate() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static QuestionParamPredicate FromInstructions(string instructions) + { + return new QuestionParamPredicate + { + Instructions = instructions, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicateType.g.cs new file mode 100644 index 000000000..0da9f0d65 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamPredicateType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `predicate`.
+ /// Default Value: predicate + ///
+ public enum QuestionParamPredicateType + { + /// + /// + /// + Predicate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QuestionParamPredicateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QuestionParamPredicateType value) + { + return value switch + { + QuestionParamPredicateType.Predicate => "predicate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QuestionParamPredicateType? ToEnum(string value) + { + return value switch + { + "predicate" => QuestionParamPredicateType.Predicate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.Json.g.cs new file mode 100644 index 000000000..9bdf2a285 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class QuestionParamScore + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamScore? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.QuestionParamScore), + jsonSerializerContext) as global::tryAGI.OpenAI.QuestionParamScore; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.QuestionParamScore? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.QuestionParamScore? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.QuestionParamScore), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.QuestionParamScore; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.g.cs new file mode 100644 index 000000000..85dfe9a63 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScore.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class QuestionParamScore + { + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + ///
+ /// global::tryAGI.OpenAI.QuestionParamScoreType.Score + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.QuestionParamScoreTypeJsonConverter))] + public global::tryAGI.OpenAI.QuestionParamScoreType Type { get; set; } = global::tryAGI.OpenAI.QuestionParamScoreType.Score; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("levels")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Levels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QuestionParamScore( + string instructions, + global::System.Collections.Generic.IList levels, + string? name, + global::tryAGI.OpenAI.QuestionParamScoreType type = global::tryAGI.OpenAI.QuestionParamScoreType.Score) + { + this.Type = type; + this.Name = name; + this.Instructions = instructions ?? throw new global::System.ArgumentNullException(nameof(instructions)); + this.Levels = levels ?? throw new global::System.ArgumentNullException(nameof(levels)); + } + + /// + /// Initializes a new instance of the class. + /// + public QuestionParamScore() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScoreType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScoreType.g.cs new file mode 100644 index 000000000..da6fea3c0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamScoreType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `score`.
+ /// Default Value: score + ///
+ public enum QuestionParamScoreType + { + /// + /// + /// + Score, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QuestionParamScoreTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QuestionParamScoreType value) + { + return value switch + { + QuestionParamScoreType.Score => "score", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QuestionParamScoreType? ToEnum(string value) + { + return value switch + { + "score" => QuestionParamScoreType.Score, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.Json.g.cs new file mode 100644 index 000000000..defef911f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ResponseUsageResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ResponseUsageResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ResponseUsageResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ResponseUsageResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ResponseUsageResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ResponseUsageResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ResponseUsageResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseUsageResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.g.cs new file mode 100644 index 000000000..d7fa8b573 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageResource.g.cs @@ -0,0 +1,85 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ResponseUsageResource + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long InputTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens_details")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.InputTokensDetailsResource InputTokensDetails { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long OutputTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens_details")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.OutputTokensDetailsResource OutputTokensDetails { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long TotalTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ResponseUsageResource( + long inputTokens, + global::tryAGI.OpenAI.InputTokensDetailsResource inputTokensDetails, + long outputTokens, + global::tryAGI.OpenAI.OutputTokensDetailsResource outputTokensDetails, + long totalTokens) + { + this.InputTokens = inputTokens; + this.InputTokensDetails = inputTokensDetails ?? throw new global::System.ArgumentNullException(nameof(inputTokensDetails)); + this.OutputTokens = outputTokens; + this.OutputTokensDetails = outputTokensDetails ?? throw new global::System.ArgumentNullException(nameof(outputTokensDetails)); + this.TotalTokens = totalTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ResponseUsageResource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.Json.g.cs new file mode 100644 index 000000000..c69429f87 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ScoreLevelParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ScoreLevelParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ScoreLevelParam), + jsonSerializerContext) as global::tryAGI.OpenAI.ScoreLevelParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ScoreLevelParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ScoreLevelParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ScoreLevelParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ScoreLevelParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.g.cs new file mode 100644 index 000000000..7061206c8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreLevelParam.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ScoreLevelParam + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ScoreLevelParam( + string label, + string? description) + { + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Description = description; + } + + /// + /// Initializes a new instance of the class. + /// + public ScoreLevelParam() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.Json.g.cs new file mode 100644 index 000000000..5395733b5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ScoreProbabilityResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ScoreProbabilityResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ScoreProbabilityResource), + jsonSerializerContext) as global::tryAGI.OpenAI.ScoreProbabilityResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ScoreProbabilityResource? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ScoreProbabilityResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ScoreProbabilityResource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ScoreProbabilityResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.g.cs new file mode 100644 index 000000000..aac725d83 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ScoreProbabilityResource.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ScoreProbabilityResource + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("probability")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Probability { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ScoreProbabilityResource( + long value, + string label, + double probability) + { + this.Value = value; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Probability = probability; + } + + /// + /// Initializes a new instance of the class. + /// + public ScoreProbabilityResource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionAgentConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionAgentConfigParam.g.cs index 1b3d26acb..9341a37eb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionAgentConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionAgentConfigParam.g.cs @@ -45,7 +45,7 @@ public sealed partial class SessionAgentConfigParam public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? MultiAgent { get; set; } /// - /// Tools available to the agent. Omit to inherit, or pass null to clear them. + /// Tools available to the agent. Omit to inherit, or pass null to clear them. The resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } @@ -78,7 +78,7 @@ public sealed partial class SessionAgentConfigParam /// Configuration for creating and coordinating subagents. /// /// - /// Tools available to the agent. Omit to inherit, or pass null to clear them. + /// Tools available to the agent. Omit to inherit, or pass null to clear them. The resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TokenUsageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TokenUsageResource.g.cs index 296fdcf15..0fdea7b4e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TokenUsageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TokenUsageResource.g.cs @@ -20,7 +20,7 @@ public sealed partial class TokenUsageResource ///
[global::System.Text.Json.Serialization.JsonPropertyName("input_tokens_details")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.InputTokensDetailsResource InputTokensDetails { get; set; } + public required global::tryAGI.OpenAI.InputTokensDetailsResource2 InputTokensDetails { get; set; } /// /// The number of output tokens generated by the agent. @@ -34,7 +34,7 @@ public sealed partial class TokenUsageResource /// [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens_details")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OutputTokensDetailsResource OutputTokensDetails { get; set; } + public required global::tryAGI.OpenAI.OutputTokensDetailsResource2 OutputTokensDetails { get; set; } /// /// The total number of input and output tokens used by the agent. @@ -72,9 +72,9 @@ public sealed partial class TokenUsageResource #endif public TokenUsageResource( long inputTokens, - global::tryAGI.OpenAI.InputTokensDetailsResource inputTokensDetails, + global::tryAGI.OpenAI.InputTokensDetailsResource2 inputTokensDetails, long outputTokens, - global::tryAGI.OpenAI.OutputTokensDetailsResource outputTokensDetails, + global::tryAGI.OpenAI.OutputTokensDetailsResource2 outputTokensDetails, long totalTokens) { this.InputTokens = inputTokens; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.Json.g.cs new file mode 100644 index 000000000..2c76df946 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputFunctionToolParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.g.cs new file mode 100644 index 000000000..63ae9933c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParam.g.cs @@ -0,0 +1,139 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ToolSearchOutputFunctionToolParam + { + /// + /// The name of the loaded function tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::tryAGI.OpenAI.EmptyModelParam? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("strict")] + public bool? Strict { get; set; } + + /// + /// Default Value: function + /// + /// global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType.Function + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputFunctionToolParamTypeJsonConverter))] + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType Type { get; set; } = global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType.Function; + + /// + /// Whether the tool response can be returned asynchronously versus immediately returned on next response creation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("async")] + public bool? Async { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// Whether this function should be deferred and discovered via tool search. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defer_loading")] + public bool? DeferLoading { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_callers")] + public global::System.Collections.Generic.IList? AllowedCallers { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The name of the loaded function tool. + /// + /// + /// + /// + /// + /// Whether the tool response can be returned asynchronously versus immediately returned on next response creation. + /// + /// + /// + /// Whether this function should be deferred and discovered via tool search. + /// + /// + /// + /// Default Value: function + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolSearchOutputFunctionToolParam( + string name, + string? description, + global::tryAGI.OpenAI.EmptyModelParam? parameters, + bool? strict, + bool? async, + object? outputSchema, + bool? deferLoading, + global::System.Collections.Generic.IList? allowedCallers, + global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType type = global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamType.Function) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Parameters = parameters; + this.Strict = strict; + this.Type = type; + this.Async = async; + this.OutputSchema = outputSchema; + this.DeferLoading = deferLoading; + this.AllowedCallers = allowedCallers; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolSearchOutputFunctionToolParam() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static ToolSearchOutputFunctionToolParam FromName(string name) + { + return new ToolSearchOutputFunctionToolParam + { + Name = name, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs new file mode 100644 index 000000000..e66d53abf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputFunctionToolParamOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.g.cs new file mode 100644 index 000000000..ae8c214f0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs. + /// + public sealed partial class ToolSearchOutputFunctionToolParamOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs new file mode 100644 index 000000000..1fc0c619f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputFunctionToolParamOutputSchema2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParamOutputSchema2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.g.cs new file mode 100644 index 000000000..ba30ad86f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamOutputSchema2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ToolSearchOutputFunctionToolParamOutputSchema2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamType.g.cs new file mode 100644 index 000000000..35d6c9d16 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputFunctionToolParamType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: function + /// + public enum ToolSearchOutputFunctionToolParamType + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolSearchOutputFunctionToolParamTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolSearchOutputFunctionToolParamType value) + { + return value switch + { + ToolSearchOutputFunctionToolParamType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolSearchOutputFunctionToolParamType? ToEnum(string value) + { + return value switch + { + "function" => ToolSearchOutputFunctionToolParamType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputItemParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputItemParam.g.cs index f59279eb8..e5625e56d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputItemParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputItemParam.g.cs @@ -41,7 +41,7 @@ public sealed partial class ToolSearchOutputItemParam /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } + public required global::System.Collections.Generic.IList Tools { get; set; } /// /// @@ -75,7 +75,7 @@ public sealed partial class ToolSearchOutputItemParam [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolSearchOutputItemParam( - global::System.Collections.Generic.IList tools, + global::System.Collections.Generic.IList tools, string? id, string? callId, global::tryAGI.OpenAI.ToolSearchExecutionType? execution, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.Json.g.cs new file mode 100644 index 000000000..50dad64ff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputNamespaceToolParam + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.g.cs new file mode 100644 index 000000000..304e681f7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParam.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Groups function/custom tools under a shared namespace. + /// + public sealed partial class ToolSearchOutputNamespaceToolParam + { + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + ///
+ /// global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType.Namespace + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamTypeJsonConverter))] + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType Type { get; set; } = global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType.Namespace; + + /// + /// The namespace name used in tool calls (for example, `crm`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// A description of the namespace shown to the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// The function/custom tools loaded inside this namespace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Tools { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The namespace name used in tool calls (for example, `crm`). + /// + /// + /// A description of the namespace shown to the model. + /// + /// + /// The function/custom tools loaded inside this namespace. + /// + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolSearchOutputNamespaceToolParam( + string name, + string description, + global::System.Collections.Generic.IList tools, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType type = global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamType.Namespace) + { + this.Type = type; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); + } + + /// + /// Initializes a new instance of the class. + /// + public ToolSearchOutputNamespaceToolParam() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs new file mode 100644 index 000000000..ecefb02d6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputNamespaceToolParamToolDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs new file mode 100644 index 000000000..1058e8e70 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ToolSearchOutputNamespaceToolParamToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolSearchOutputNamespaceToolParamToolDiscriminator( + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolSearchOutputNamespaceToolParamToolDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 000000000..3636a25c5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ToolSearchOutputNamespaceToolParamToolDiscriminatorType + { + /// + /// + /// + Custom, + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolSearchOutputNamespaceToolParamToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolSearchOutputNamespaceToolParamToolDiscriminatorType value) + { + return value switch + { + ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom => "custom", + ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolSearchOutputNamespaceToolParamToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom" => ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Custom, + "function" => ToolSearchOutputNamespaceToolParamToolDiscriminatorType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamType.g.cs new file mode 100644 index 000000000..5b1a378aa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputNamespaceToolParamType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the tool. Always `namespace`.
+ /// Default Value: namespace + ///
+ public enum ToolSearchOutputNamespaceToolParamType + { + /// + /// + /// + Namespace, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolSearchOutputNamespaceToolParamTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolSearchOutputNamespaceToolParamType value) + { + return value switch + { + ToolSearchOutputNamespaceToolParamType.Namespace => "namespace", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolSearchOutputNamespaceToolParamType? ToEnum(string value) + { + return value switch + { + "namespace" => ToolSearchOutputNamespaceToolParamType.Namespace, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.Json.g.cs new file mode 100644 index 000000000..95894ce30 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ToolSearchOutputTool + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputTool), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputTool?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputTool? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputTool?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.g.cs new file mode 100644 index 000000000..e25948580 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputTool.g.cs @@ -0,0 +1,1459 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A tool definition returned by a tool search output. + /// + public readonly partial struct ToolSearchOutputTool : global::System.IEquatable + { + /// + /// Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-calling). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.FunctionTool? Function { get; init; } +#else + public global::tryAGI.OpenAI.FunctionTool? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.FunctionTool? value) + { + value = Function; + return IsFunction; + } + + /// + /// + /// + public global::tryAGI.OpenAI.FunctionTool PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + + /// + /// A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file-search). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.FileSearchTool? FileSearch { get; init; } +#else + public global::tryAGI.OpenAI.FileSearchTool? FileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] +#endif + public bool IsFileSearch => FileSearch != null; + + /// + /// + /// + public bool TryPickFileSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.FileSearchTool? value) + { + value = FileSearch; + return IsFileSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchTool PickFileSearch() => FileSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); + + /// + /// A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ComputerTool? Computer { get; init; } +#else + public global::tryAGI.OpenAI.ComputerTool? Computer { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Computer))] +#endif + public bool IsComputer => Computer != null; + + /// + /// + /// + public bool TryPickComputer( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ComputerTool? value) + { + value = Computer; + return IsComputer; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ComputerTool PickComputer() => Computer is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); + + /// + /// A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ComputerUsePreviewTool? ComputerUsePreview { get; init; } +#else + public global::tryAGI.OpenAI.ComputerUsePreviewTool? ComputerUsePreview { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComputerUsePreview))] +#endif + public bool IsComputerUsePreview => ComputerUsePreview != null; + + /// + /// + /// + public bool TryPickComputerUsePreview( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ComputerUsePreviewTool? value) + { + value = ComputerUsePreview; + return IsComputerUsePreview; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ComputerUsePreviewTool PickComputerUsePreview() => ComputerUsePreview is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUsePreview' but the value was {ToString()}."); + + /// + /// Search the Internet for sources related to the prompt. Learn more about the
+ /// [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.WebSearchTool? WebSearch { get; init; } +#else + public global::tryAGI.OpenAI.WebSearchTool? WebSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearch))] +#endif + public bool IsWebSearch => WebSearch != null; + + /// + /// + /// + public bool TryPickWebSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.WebSearchTool? value) + { + value = WebSearch; + return IsWebSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchTool PickWebSearch() => WebSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); + + /// + /// Give the model access to additional tools via remote Model Context Protocol
+ /// (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp). + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MCPTool? Mcp { get; init; } +#else + public global::tryAGI.OpenAI.MCPTool? Mcp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] +#endif + public bool IsMcp => Mcp != null; + + /// + /// + /// + public bool TryPickMcp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.MCPTool? value) + { + value = Mcp; + return IsMcp; + } + + /// + /// + /// + public global::tryAGI.OpenAI.MCPTool PickMcp() => Mcp is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); + + /// + /// A tool that runs Python code to help generate a response to a prompt. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CodeInterpreterTool? CodeInterpreter { get; init; } +#else + public global::tryAGI.OpenAI.CodeInterpreterTool? CodeInterpreter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] +#endif + public bool IsCodeInterpreter => CodeInterpreter != null; + + /// + /// + /// + public bool TryPickCodeInterpreter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.CodeInterpreterTool? value) + { + value = CodeInterpreter; + return IsCodeInterpreter; + } + + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterTool PickCodeInterpreter() => CodeInterpreter is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? ProgrammaticToolCalling { get; init; } +#else + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? ProgrammaticToolCalling { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProgrammaticToolCalling))] +#endif + public bool IsProgrammaticToolCalling => ProgrammaticToolCalling != null; + + /// + /// + /// + public bool TryPickProgrammaticToolCalling( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ProgrammaticToolCallingParam? value) + { + value = ProgrammaticToolCalling; + return IsProgrammaticToolCalling; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); + + /// + /// A tool that generates images using the GPT image models. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ImageGenTool? ImageGeneration { get; init; } +#else + public global::tryAGI.OpenAI.ImageGenTool? ImageGeneration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGeneration))] +#endif + public bool IsImageGeneration => ImageGeneration != null; + + /// + /// + /// + public bool TryPickImageGeneration( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ImageGenTool? value) + { + value = ImageGeneration; + return IsImageGeneration; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenTool PickImageGeneration() => ImageGeneration is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); + + /// + /// A tool that allows the model to execute shell commands in a local environment. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LocalShellToolParam? LocalShell { get; init; } +#else + public global::tryAGI.OpenAI.LocalShellToolParam? LocalShell { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LocalShell))] +#endif + public bool IsLocalShell => LocalShell != null; + + /// + /// + /// + public bool TryPickLocalShell( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LocalShellToolParam? value) + { + value = LocalShell; + return IsLocalShell; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolParam PickLocalShell() => LocalShell is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShell' but the value was {ToString()}."); + + /// + /// A tool that allows the model to execute shell commands. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.FunctionShellToolParam? Shell { get; init; } +#else + public global::tryAGI.OpenAI.FunctionShellToolParam? Shell { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shell))] +#endif + public bool IsShell => Shell != null; + + /// + /// + /// + public bool TryPickShell( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.FunctionShellToolParam? value) + { + value = Shell; + return IsShell; + } + + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellToolParam PickShell() => Shell is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); + + /// + /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CustomToolParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.CustomToolParam? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.CustomToolParam? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// Groups function/custom tools under a shared namespace. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? Namespace { get; init; } +#else + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? Namespace { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Namespace))] +#endif + public bool IsNamespace => Namespace != null; + + /// + /// + /// + public bool TryPickNamespace( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? value) + { + value = Namespace; + return IsNamespace; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam PickNamespace() => Namespace is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); + + /// + /// Hosted or BYOT tool search configuration for deferred tools. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ToolSearchToolParam? ToolSearch { get; init; } +#else + public global::tryAGI.OpenAI.ToolSearchToolParam? ToolSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearch))] +#endif + public bool IsToolSearch => ToolSearch != null; + + /// + /// + /// + public bool TryPickToolSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ToolSearchToolParam? value) + { + value = ToolSearch; + return IsToolSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchToolParam PickToolSearch() => ToolSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); + + /// + /// This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.WebSearchPreviewTool? WebSearchPreview { get; init; } +#else + public global::tryAGI.OpenAI.WebSearchPreviewTool? WebSearchPreview { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearchPreview))] +#endif + public bool IsWebSearchPreview => WebSearchPreview != null; + + /// + /// + /// + public bool TryPickWebSearchPreview( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.WebSearchPreviewTool? value) + { + value = WebSearchPreview; + return IsWebSearchPreview; + } + + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchPreviewTool PickWebSearchPreview() => WebSearchPreview is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchPreview' but the value was {ToString()}."); + + /// + /// Allows the assistant to create, delete, or update files using unified diffs. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ApplyPatchToolParam? ApplyPatch { get; init; } +#else + public global::tryAGI.OpenAI.ApplyPatchToolParam? ApplyPatch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatch))] +#endif + public bool IsApplyPatch => ApplyPatch != null; + + /// + /// + /// + public bool TryPickApplyPatch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ApplyPatchToolParam? value) + { + value = ApplyPatch; + return IsApplyPatch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolParam PickApplyPatch() => ApplyPatch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.FunctionTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.FunctionTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.FunctionTool?(ToolSearchOutputTool @this) => @this.Function; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.FunctionTool? value) + { + Function = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromFunction(global::tryAGI.OpenAI.FunctionTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.FileSearchTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.FileSearchTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.FileSearchTool?(ToolSearchOutputTool @this) => @this.FileSearch; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.FileSearchTool? value) + { + FileSearch = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromFileSearch(global::tryAGI.OpenAI.FileSearchTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ComputerTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ComputerTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ComputerTool?(ToolSearchOutputTool @this) => @this.Computer; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ComputerTool? value) + { + Computer = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromComputer(global::tryAGI.OpenAI.ComputerTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ComputerUsePreviewTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ComputerUsePreviewTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ComputerUsePreviewTool?(ToolSearchOutputTool @this) => @this.ComputerUsePreview; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ComputerUsePreviewTool? value) + { + ComputerUsePreview = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromComputerUsePreview(global::tryAGI.OpenAI.ComputerUsePreviewTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.WebSearchTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.WebSearchTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.WebSearchTool?(ToolSearchOutputTool @this) => @this.WebSearch; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.WebSearchTool? value) + { + WebSearch = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromWebSearch(global::tryAGI.OpenAI.WebSearchTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.MCPTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.MCPTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MCPTool?(ToolSearchOutputTool @this) => @this.Mcp; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.MCPTool? value) + { + Mcp = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromMcp(global::tryAGI.OpenAI.MCPTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.CodeInterpreterTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.CodeInterpreterTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CodeInterpreterTool?(ToolSearchOutputTool @this) => @this.CodeInterpreter; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.CodeInterpreterTool? value) + { + CodeInterpreter = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromCodeInterpreter(global::tryAGI.OpenAI.CodeInterpreterTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ProgrammaticToolCallingParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ProgrammaticToolCallingParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ProgrammaticToolCallingParam?(ToolSearchOutputTool @this) => @this.ProgrammaticToolCalling; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ProgrammaticToolCallingParam? value) + { + ProgrammaticToolCalling = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromProgrammaticToolCalling(global::tryAGI.OpenAI.ProgrammaticToolCallingParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ImageGenTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ImageGenTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ImageGenTool?(ToolSearchOutputTool @this) => @this.ImageGeneration; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ImageGenTool? value) + { + ImageGeneration = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromImageGeneration(global::tryAGI.OpenAI.ImageGenTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.LocalShellToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.LocalShellToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LocalShellToolParam?(ToolSearchOutputTool @this) => @this.LocalShell; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.LocalShellToolParam? value) + { + LocalShell = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromLocalShell(global::tryAGI.OpenAI.LocalShellToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.FunctionShellToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.FunctionShellToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.FunctionShellToolParam?(ToolSearchOutputTool @this) => @this.Shell; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.FunctionShellToolParam? value) + { + Shell = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromShell(global::tryAGI.OpenAI.FunctionShellToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.CustomToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.CustomToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CustomToolParam?(ToolSearchOutputTool @this) => @this.Custom; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.CustomToolParam? value) + { + Custom = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromCustom(global::tryAGI.OpenAI.CustomToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam?(ToolSearchOutputTool @this) => @this.Namespace; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? value) + { + Namespace = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromNamespace(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ToolSearchToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ToolSearchToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ToolSearchToolParam?(ToolSearchOutputTool @this) => @this.ToolSearch; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ToolSearchToolParam? value) + { + ToolSearch = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromToolSearch(global::tryAGI.OpenAI.ToolSearchToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.WebSearchPreviewTool value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.WebSearchPreviewTool?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.WebSearchPreviewTool?(ToolSearchOutputTool @this) => @this.WebSearchPreview; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.WebSearchPreviewTool? value) + { + WebSearchPreview = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromWebSearchPreview(global::tryAGI.OpenAI.WebSearchPreviewTool? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public static implicit operator ToolSearchOutputTool(global::tryAGI.OpenAI.ApplyPatchToolParam value) => new ToolSearchOutputTool((global::tryAGI.OpenAI.ApplyPatchToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ApplyPatchToolParam?(ToolSearchOutputTool @this) => @this.ApplyPatch; + + /// + /// + /// + public ToolSearchOutputTool(global::tryAGI.OpenAI.ApplyPatchToolParam? value) + { + ApplyPatch = value; + } + + /// + /// + /// + public static ToolSearchOutputTool FromApplyPatch(global::tryAGI.OpenAI.ApplyPatchToolParam? value) => new ToolSearchOutputTool(value); + + /// + /// + /// + public ToolSearchOutputTool( + global::tryAGI.OpenAI.FunctionTool? function, + global::tryAGI.OpenAI.FileSearchTool? fileSearch, + global::tryAGI.OpenAI.ComputerTool? computer, + global::tryAGI.OpenAI.ComputerUsePreviewTool? computerUsePreview, + global::tryAGI.OpenAI.WebSearchTool? webSearch, + global::tryAGI.OpenAI.MCPTool? mcp, + global::tryAGI.OpenAI.CodeInterpreterTool? codeInterpreter, + global::tryAGI.OpenAI.ProgrammaticToolCallingParam? programmaticToolCalling, + global::tryAGI.OpenAI.ImageGenTool? imageGeneration, + global::tryAGI.OpenAI.LocalShellToolParam? localShell, + global::tryAGI.OpenAI.FunctionShellToolParam? shell, + global::tryAGI.OpenAI.CustomToolParam? custom, + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam? @namespace, + global::tryAGI.OpenAI.ToolSearchToolParam? toolSearch, + global::tryAGI.OpenAI.WebSearchPreviewTool? webSearchPreview, + global::tryAGI.OpenAI.ApplyPatchToolParam? applyPatch + ) + { + Function = function; + FileSearch = fileSearch; + Computer = computer; + ComputerUsePreview = computerUsePreview; + WebSearch = webSearch; + Mcp = mcp; + CodeInterpreter = codeInterpreter; + ProgrammaticToolCalling = programmaticToolCalling; + ImageGeneration = imageGeneration; + LocalShell = localShell; + Shell = shell; + Custom = custom; + Namespace = @namespace; + ToolSearch = toolSearch; + WebSearchPreview = webSearchPreview; + ApplyPatch = applyPatch; + } + + /// + /// + /// + public object? Object => + ApplyPatch as object ?? + WebSearchPreview as object ?? + ToolSearch as object ?? + Namespace as object ?? + Custom as object ?? + Shell as object ?? + LocalShell as object ?? + ImageGeneration as object ?? + ProgrammaticToolCalling as object ?? + CodeInterpreter as object ?? + Mcp as object ?? + WebSearch as object ?? + ComputerUsePreview as object ?? + Computer as object ?? + FileSearch as object ?? + Function as object + ; + + /// + /// + /// + public override string? ToString() => + Function?.ToString() ?? + FileSearch?.ToString() ?? + Computer?.ToString() ?? + ComputerUsePreview?.ToString() ?? + WebSearch?.ToString() ?? + Mcp?.ToString() ?? + CodeInterpreter?.ToString() ?? + ProgrammaticToolCalling?.ToString() ?? + ImageGeneration?.ToString() ?? + LocalShell?.ToString() ?? + Shell?.ToString() ?? + Custom?.ToString() ?? + Namespace?.ToString() ?? + ToolSearch?.ToString() ?? + WebSearchPreview?.ToString() ?? + ApplyPatch?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && IsNamespace && !IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && IsToolSearch && !IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && IsWebSearchPreview && !IsApplyPatch || !IsFunction && !IsFileSearch && !IsComputer && !IsComputerUsePreview && !IsWebSearch && !IsMcp && !IsCodeInterpreter && !IsProgrammaticToolCalling && !IsImageGeneration && !IsLocalShell && !IsShell && !IsCustom && !IsNamespace && !IsToolSearch && !IsWebSearchPreview && IsApplyPatch; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? function = null, + global::System.Func? fileSearch = null, + global::System.Func? computer = null, + global::System.Func? computerUsePreview = null, + global::System.Func? webSearch = null, + global::System.Func? mcp = null, + global::System.Func? codeInterpreter = null, + global::System.Func? programmaticToolCalling = null, + global::System.Func? imageGeneration = null, + global::System.Func? localShell = null, + global::System.Func? shell = null, + global::System.Func? custom = null, + global::System.Func? @namespace = null, + global::System.Func? toolSearch = null, + global::System.Func? webSearchPreview = null, + global::System.Func? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0 && function != null) + { + return function(__value0); + } + else if (FileSearch is { } __value1 && fileSearch != null) + { + return fileSearch(__value1); + } + else if (Computer is { } __value2 && computer != null) + { + return computer(__value2); + } + else if (ComputerUsePreview is { } __value3 && computerUsePreview != null) + { + return computerUsePreview(__value3); + } + else if (WebSearch is { } __value4 && webSearch != null) + { + return webSearch(__value4); + } + else if (Mcp is { } __value5 && mcp != null) + { + return mcp(__value5); + } + else if (CodeInterpreter is { } __value6 && codeInterpreter != null) + { + return codeInterpreter(__value6); + } + else if (ProgrammaticToolCalling is { } __value7 && programmaticToolCalling != null) + { + return programmaticToolCalling(__value7); + } + else if (ImageGeneration is { } __value8 && imageGeneration != null) + { + return imageGeneration(__value8); + } + else if (LocalShell is { } __value9 && localShell != null) + { + return localShell(__value9); + } + else if (Shell is { } __value10 && shell != null) + { + return shell(__value10); + } + else if (Custom is { } __value11 && custom != null) + { + return custom(__value11); + } + else if (Namespace is { } __value12 && @namespace != null) + { + return @namespace(__value12); + } + else if (ToolSearch is { } __value13 && toolSearch != null) + { + return toolSearch(__value13); + } + else if (WebSearchPreview is { } __value14 && webSearchPreview != null) + { + return webSearchPreview(__value14); + } + else if (ApplyPatch is { } __value15 && applyPatch != null) + { + return applyPatch(__value15); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? function = null, + + global::System.Action? fileSearch = null, + + global::System.Action? computer = null, + + global::System.Action? computerUsePreview = null, + + global::System.Action? webSearch = null, + + global::System.Action? mcp = null, + + global::System.Action? codeInterpreter = null, + + global::System.Action? programmaticToolCalling = null, + + global::System.Action? imageGeneration = null, + + global::System.Action? localShell = null, + + global::System.Action? shell = null, + + global::System.Action? custom = null, + + global::System.Action? @namespace = null, + + global::System.Action? toolSearch = null, + + global::System.Action? webSearchPreview = null, + + global::System.Action? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (FileSearch is { } __value1) + { + fileSearch?.Invoke(__value1); + } + else if (Computer is { } __value2) + { + computer?.Invoke(__value2); + } + else if (ComputerUsePreview is { } __value3) + { + computerUsePreview?.Invoke(__value3); + } + else if (WebSearch is { } __value4) + { + webSearch?.Invoke(__value4); + } + else if (Mcp is { } __value5) + { + mcp?.Invoke(__value5); + } + else if (CodeInterpreter is { } __value6) + { + codeInterpreter?.Invoke(__value6); + } + else if (ProgrammaticToolCalling is { } __value7) + { + programmaticToolCalling?.Invoke(__value7); + } + else if (ImageGeneration is { } __value8) + { + imageGeneration?.Invoke(__value8); + } + else if (LocalShell is { } __value9) + { + localShell?.Invoke(__value9); + } + else if (Shell is { } __value10) + { + shell?.Invoke(__value10); + } + else if (Custom is { } __value11) + { + custom?.Invoke(__value11); + } + else if (Namespace is { } __value12) + { + @namespace?.Invoke(__value12); + } + else if (ToolSearch is { } __value13) + { + toolSearch?.Invoke(__value13); + } + else if (WebSearchPreview is { } __value14) + { + webSearchPreview?.Invoke(__value14); + } + else if (ApplyPatch is { } __value15) + { + applyPatch?.Invoke(__value15); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? function = null, + global::System.Action? fileSearch = null, + global::System.Action? computer = null, + global::System.Action? computerUsePreview = null, + global::System.Action? webSearch = null, + global::System.Action? mcp = null, + global::System.Action? codeInterpreter = null, + global::System.Action? programmaticToolCalling = null, + global::System.Action? imageGeneration = null, + global::System.Action? localShell = null, + global::System.Action? shell = null, + global::System.Action? custom = null, + global::System.Action? @namespace = null, + global::System.Action? toolSearch = null, + global::System.Action? webSearchPreview = null, + global::System.Action? applyPatch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (FileSearch is { } __value1) + { + fileSearch?.Invoke(__value1); + } + else if (Computer is { } __value2) + { + computer?.Invoke(__value2); + } + else if (ComputerUsePreview is { } __value3) + { + computerUsePreview?.Invoke(__value3); + } + else if (WebSearch is { } __value4) + { + webSearch?.Invoke(__value4); + } + else if (Mcp is { } __value5) + { + mcp?.Invoke(__value5); + } + else if (CodeInterpreter is { } __value6) + { + codeInterpreter?.Invoke(__value6); + } + else if (ProgrammaticToolCalling is { } __value7) + { + programmaticToolCalling?.Invoke(__value7); + } + else if (ImageGeneration is { } __value8) + { + imageGeneration?.Invoke(__value8); + } + else if (LocalShell is { } __value9) + { + localShell?.Invoke(__value9); + } + else if (Shell is { } __value10) + { + shell?.Invoke(__value10); + } + else if (Custom is { } __value11) + { + custom?.Invoke(__value11); + } + else if (Namespace is { } __value12) + { + @namespace?.Invoke(__value12); + } + else if (ToolSearch is { } __value13) + { + toolSearch?.Invoke(__value13); + } + else if (WebSearchPreview is { } __value14) + { + webSearchPreview?.Invoke(__value14); + } + else if (ApplyPatch is { } __value15) + { + applyPatch?.Invoke(__value15); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Function, + typeof(global::tryAGI.OpenAI.FunctionTool), + FileSearch, + typeof(global::tryAGI.OpenAI.FileSearchTool), + Computer, + typeof(global::tryAGI.OpenAI.ComputerTool), + ComputerUsePreview, + typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), + WebSearch, + typeof(global::tryAGI.OpenAI.WebSearchTool), + Mcp, + typeof(global::tryAGI.OpenAI.MCPTool), + CodeInterpreter, + typeof(global::tryAGI.OpenAI.CodeInterpreterTool), + ProgrammaticToolCalling, + typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam), + ImageGeneration, + typeof(global::tryAGI.OpenAI.ImageGenTool), + LocalShell, + typeof(global::tryAGI.OpenAI.LocalShellToolParam), + Shell, + typeof(global::tryAGI.OpenAI.FunctionShellToolParam), + Custom, + typeof(global::tryAGI.OpenAI.CustomToolParam), + Namespace, + typeof(global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParam), + ToolSearch, + typeof(global::tryAGI.OpenAI.ToolSearchToolParam), + WebSearchPreview, + typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), + ApplyPatch, + typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolSearchOutputTool other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Computer, other.Computer) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerUsePreview, other.ComputerUsePreview) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProgrammaticToolCalling, other.ProgrammaticToolCalling) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGeneration, other.ImageGeneration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(LocalShell, other.LocalShell) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Shell, other.Shell) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Namespace, other.Namespace) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearch, other.ToolSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchPreview, other.WebSearchPreview) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatch, other.ApplyPatch) + ; + } + + /// + /// + /// + public static bool operator ==(ToolSearchOutputTool obj1, ToolSearchOutputTool obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolSearchOutputTool obj1, ToolSearchOutputTool obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ToolSearchOutputTool o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.Json.g.cs new file mode 100644 index 000000000..3294c76fb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ToolSearchOutputToolDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.g.cs new file mode 100644 index 000000000..1b557fc20 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ToolSearchOutputToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolSearchOutputToolDiscriminator( + global::tryAGI.OpenAI.ToolSearchOutputToolDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolSearchOutputToolDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminatorType.g.cs new file mode 100644 index 000000000..62f6941cb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolSearchOutputToolDiscriminatorType.g.cs @@ -0,0 +1,123 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ToolSearchOutputToolDiscriminatorType + { + /// + /// + /// + ApplyPatch, + /// + /// + /// + CodeInterpreter, + /// + /// + /// + Computer, + /// + /// + /// + ComputerUsePreview, + /// + /// + /// + Custom, + /// + /// + /// + FileSearch, + /// + /// + /// + Function, + /// + /// + /// + ImageGeneration, + /// + /// + /// + LocalShell, + /// + /// + /// + Mcp, + /// + /// + /// + Namespace, + /// + /// + /// + ProgrammaticToolCalling, + /// + /// + /// + Shell, + /// + /// + /// + ToolSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolSearchOutputToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolSearchOutputToolDiscriminatorType value) + { + return value switch + { + ToolSearchOutputToolDiscriminatorType.ApplyPatch => "apply_patch", + ToolSearchOutputToolDiscriminatorType.CodeInterpreter => "code_interpreter", + ToolSearchOutputToolDiscriminatorType.Computer => "computer", + ToolSearchOutputToolDiscriminatorType.ComputerUsePreview => "computer_use_preview", + ToolSearchOutputToolDiscriminatorType.Custom => "custom", + ToolSearchOutputToolDiscriminatorType.FileSearch => "file_search", + ToolSearchOutputToolDiscriminatorType.Function => "function", + ToolSearchOutputToolDiscriminatorType.ImageGeneration => "image_generation", + ToolSearchOutputToolDiscriminatorType.LocalShell => "local_shell", + ToolSearchOutputToolDiscriminatorType.Mcp => "mcp", + ToolSearchOutputToolDiscriminatorType.Namespace => "namespace", + ToolSearchOutputToolDiscriminatorType.ProgrammaticToolCalling => "programmatic_tool_calling", + ToolSearchOutputToolDiscriminatorType.Shell => "shell", + ToolSearchOutputToolDiscriminatorType.ToolSearch => "tool_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolSearchOutputToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch" => ToolSearchOutputToolDiscriminatorType.ApplyPatch, + "code_interpreter" => ToolSearchOutputToolDiscriminatorType.CodeInterpreter, + "computer" => ToolSearchOutputToolDiscriminatorType.Computer, + "computer_use_preview" => ToolSearchOutputToolDiscriminatorType.ComputerUsePreview, + "custom" => ToolSearchOutputToolDiscriminatorType.Custom, + "file_search" => ToolSearchOutputToolDiscriminatorType.FileSearch, + "function" => ToolSearchOutputToolDiscriminatorType.Function, + "image_generation" => ToolSearchOutputToolDiscriminatorType.ImageGeneration, + "local_shell" => ToolSearchOutputToolDiscriminatorType.LocalShell, + "mcp" => ToolSearchOutputToolDiscriminatorType.Mcp, + "namespace" => ToolSearchOutputToolDiscriminatorType.Namespace, + "programmatic_tool_calling" => ToolSearchOutputToolDiscriminatorType.ProgrammaticToolCalling, + "shell" => ToolSearchOutputToolDiscriminatorType.Shell, + "tool_search" => ToolSearchOutputToolDiscriminatorType.ToolSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs index b15f6df40..35b667a9b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs @@ -5,670 +5,125 @@ namespace tryAGI.OpenAI { /// - /// + /// A function or custom tool loaded into a namespace by tool search. /// public readonly partial struct ToolsItem14 : global::System.IEquatable { /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type { get; } - - /// - /// A function tool available to the Responses backend when the Live model delegates a task. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Function { get; init; } -#else - public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Function { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] -#endif - public bool IsFunction => Function != null; - - /// - /// - /// - public bool TryPickFunction( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) - { - value = Function; - return IsFunction; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => Function is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); - - /// - /// A web search tool available to the Live session’s Responses backend. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? WebSearch { get; init; } -#else - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? WebSearch { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearch))] -#endif - public bool IsWebSearch => WebSearch != null; - - /// - /// - /// - public bool TryPickWebSearch( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) - { - value = WebSearch; - return IsWebSearch; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => WebSearch is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? FileSearch { get; init; } -#else - public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? FileSearch { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] -#endif - public bool IsFileSearch => FileSearch != null; - - /// - /// - /// - public bool TryPickFileSearch( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) - { - value = FileSearch; - return IsFileSearch; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveFileSearchToolInputParam PickFileSearch() => FileSearch is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? CodeInterpreter { get; init; } -#else - public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? CodeInterpreter { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] -#endif - public bool IsCodeInterpreter => CodeInterpreter != null; - - /// - /// - /// - public bool TryPickCodeInterpreter( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) - { - value = CodeInterpreter; - return IsCodeInterpreter; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam PickCodeInterpreter() => CodeInterpreter is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); - - /// - /// A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Shell { get; init; } -#else - public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Shell { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shell))] -#endif - public bool IsShell => Shell != null; - - /// - /// - /// - public bool TryPickShell( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) - { - value = Shell; - return IsShell; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveHostedShellToolInputParam PickShell() => Shell is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? ImageGeneration { get; init; } -#else - public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? ImageGeneration { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGeneration))] -#endif - public bool IsImageGeneration => ImageGeneration != null; - - /// - /// - /// - public bool TryPickImageGeneration( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) - { - value = ImageGeneration; - return IsImageGeneration; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam PickImageGeneration() => ImageGeneration is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveMCPToolInputParam? Mcp { get; init; } -#else - public global::tryAGI.OpenAI.LiveMCPToolInputParam? Mcp { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] -#endif - public bool IsMcp => Mcp != null; - - /// - /// - /// - public bool TryPickMcp( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveMCPToolInputParam? value) - { - value = Mcp; - return IsMcp; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveMCPToolInputParam PickMcp() => Mcp is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveCustomToolInputParam? Custom { get; init; } -#else - public global::tryAGI.OpenAI.LiveCustomToolInputParam? Custom { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] -#endif - public bool IsCustom => Custom != null; - - /// - /// - /// - public bool TryPickCustom( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveCustomToolInputParam? value) - { - value = Custom; - return IsCustom; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveCustomToolInputParam PickCustom() => Custom is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Namespace { get; init; } -#else - public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Namespace { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Namespace))] -#endif - public bool IsNamespace => Namespace != null; - - /// - /// - /// - public bool TryPickNamespace( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) - { - value = Namespace; - return IsNamespace; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveNamespaceToolInputParam PickNamespace() => Namespace is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? ToolSearch { get; init; } -#else - public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? ToolSearch { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearch))] -#endif - public bool IsToolSearch => ToolSearch != null; - - /// - /// - /// - public bool TryPickToolSearch( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) - { - value = ToolSearch; - return IsToolSearch; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveToolSearchToolInputParam PickToolSearch() => ToolSearch is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? ProgrammaticToolCalling { get; init; } -#else - public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? ProgrammaticToolCalling { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProgrammaticToolCalling))] -#endif - public bool IsProgrammaticToolCalling => ProgrammaticToolCalling != null; - - /// - /// - /// - public bool TryPickProgrammaticToolCalling( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) - { - value = ProgrammaticToolCalling; - return IsProgrammaticToolCalling; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveComputerToolInputParam? Computer { get; init; } -#else - public global::tryAGI.OpenAI.LiveComputerToolInputParam? Computer { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Computer))] -#endif - public bool IsComputer => Computer != null; - - /// - /// - /// - public bool TryPickComputer( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveComputerToolInputParam? value) - { - value = Computer; - return IsComputer; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveComputerToolInputParam PickComputer() => Computer is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? ApplyPatch { get; init; } -#else - public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? ApplyPatch { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatch))] -#endif - public bool IsApplyPatch => ApplyPatch != null; - - /// - /// - /// - public bool TryPickApplyPatch( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) - { - value = ApplyPatch; - return IsApplyPatch; - } - - /// - /// - /// - public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam PickApplyPatch() => ApplyPatch is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveFunctionToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveFunctionToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveFunctionToolInputParam?(ToolsItem14 @this) => @this.Function; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) - { - Function = value; - } - - /// - /// - /// - public static ToolsItem14 FromFunction(global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveWebSearchToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveWebSearchToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveWebSearchToolInputParam?(ToolsItem14 @this) => @this.WebSearch; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) - { - WebSearch = value; - } - - /// - /// - /// - public static ToolsItem14 FromWebSearch(global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveFileSearchToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveFileSearchToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveFileSearchToolInputParam?(ToolsItem14 @this) => @this.FileSearch; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) - { - FileSearch = value; - } - - /// - /// - /// - public static ToolsItem14 FromFileSearch(global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam?(ToolsItem14 @this) => @this.CodeInterpreter; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) - { - CodeInterpreter = value; - } - - /// - /// - /// - public static ToolsItem14 FromCodeInterpreter(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) => new ToolsItem14(value); + public global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type { get; } /// /// /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveHostedShellToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveHostedShellToolInputParam?)value); +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? Function { get; init; } +#else + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? Function { get; } +#endif /// /// /// - public static implicit operator global::tryAGI.OpenAI.LiveHostedShellToolInputParam?(ToolsItem14 @this) => @this.Shell; +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; /// /// /// - public ToolsItem14(global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? value) { - Shell = value; + value = Function; + return IsFunction; } /// /// /// - public static ToolsItem14 FromShell(global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) => new ToolsItem14(value); + public global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// - /// + /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveImageGenerationToolInputParam?)value); +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CustomToolParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.CustomToolParam? Custom { get; } +#endif /// /// /// - public static implicit operator global::tryAGI.OpenAI.LiveImageGenerationToolInputParam?(ToolsItem14 @this) => @this.ImageGeneration; +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; /// /// /// - public ToolsItem14(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.CustomToolParam? value) { - ImageGeneration = value; + value = Custom; + return IsCustom; } /// /// /// - public static ToolsItem14 FromImageGeneration(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) => new ToolsItem14(value); - + public global::tryAGI.OpenAI.CustomToolParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveMCPToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveMCPToolInputParam?)value); + public static implicit operator ToolsItem14(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam value) => new ToolsItem14((global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.LiveMCPToolInputParam?(ToolsItem14 @this) => @this.Mcp; + public static implicit operator global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam?(ToolsItem14 @this) => @this.Function; /// /// /// - public ToolsItem14(global::tryAGI.OpenAI.LiveMCPToolInputParam? value) + public ToolsItem14(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? value) { - Mcp = value; + Function = value; } /// /// /// - public static ToolsItem14 FromMcp(global::tryAGI.OpenAI.LiveMCPToolInputParam? value) => new ToolsItem14(value); + public static ToolsItem14 FromFunction(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? value) => new ToolsItem14(value); /// /// /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveCustomToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveCustomToolInputParam?)value); + public static implicit operator ToolsItem14(global::tryAGI.OpenAI.CustomToolParam value) => new ToolsItem14((global::tryAGI.OpenAI.CustomToolParam?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.LiveCustomToolInputParam?(ToolsItem14 @this) => @this.Custom; + public static implicit operator global::tryAGI.OpenAI.CustomToolParam?(ToolsItem14 @this) => @this.Custom; /// /// /// - public ToolsItem14(global::tryAGI.OpenAI.LiveCustomToolInputParam? value) + public ToolsItem14(global::tryAGI.OpenAI.CustomToolParam? value) { Custom = value; } @@ -676,176 +131,28 @@ public ToolsItem14(global::tryAGI.OpenAI.LiveCustomToolInputParam? value) /// /// /// - public static ToolsItem14 FromCustom(global::tryAGI.OpenAI.LiveCustomToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveNamespaceToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveNamespaceToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveNamespaceToolInputParam?(ToolsItem14 @this) => @this.Namespace; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) - { - Namespace = value; - } - - /// - /// - /// - public static ToolsItem14 FromNamespace(global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveToolSearchToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveToolSearchToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveToolSearchToolInputParam?(ToolsItem14 @this) => @this.ToolSearch; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) - { - ToolSearch = value; - } - - /// - /// - /// - public static ToolsItem14 FromToolSearch(global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveProgrammaticToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveProgrammaticToolInputParam?(ToolsItem14 @this) => @this.ProgrammaticToolCalling; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) - { - ProgrammaticToolCalling = value; - } - - /// - /// - /// - public static ToolsItem14 FromProgrammaticToolCalling(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveComputerToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveComputerToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveComputerToolInputParam?(ToolsItem14 @this) => @this.Computer; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveComputerToolInputParam? value) - { - Computer = value; - } - - /// - /// - /// - public static ToolsItem14 FromComputer(global::tryAGI.OpenAI.LiveComputerToolInputParam? value) => new ToolsItem14(value); - - /// - /// - /// - public static implicit operator ToolsItem14(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam value) => new ToolsItem14((global::tryAGI.OpenAI.LiveApplyPatchToolInputParam?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.LiveApplyPatchToolInputParam?(ToolsItem14 @this) => @this.ApplyPatch; - - /// - /// - /// - public ToolsItem14(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) - { - ApplyPatch = value; - } - - /// - /// - /// - public static ToolsItem14 FromApplyPatch(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) => new ToolsItem14(value); + public static ToolsItem14 FromCustom(global::tryAGI.OpenAI.CustomToolParam? value) => new ToolsItem14(value); /// /// /// public ToolsItem14( - global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? type, - global::tryAGI.OpenAI.LiveFunctionToolInputParam? function, - global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch, - global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch, - global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? codeInterpreter, - global::tryAGI.OpenAI.LiveHostedShellToolInputParam? shell, - global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? imageGeneration, - global::tryAGI.OpenAI.LiveMCPToolInputParam? mcp, - global::tryAGI.OpenAI.LiveCustomToolInputParam? custom, - global::tryAGI.OpenAI.LiveNamespaceToolInputParam? @namespace, - global::tryAGI.OpenAI.LiveToolSearchToolInputParam? toolSearch, - global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? programmaticToolCalling, - global::tryAGI.OpenAI.LiveComputerToolInputParam? computer, - global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? applyPatch + global::tryAGI.OpenAI.ToolSearchOutputNamespaceToolParamToolDiscriminatorType? type, + global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam? function, + global::tryAGI.OpenAI.CustomToolParam? custom ) { Type = type; Function = function; - WebSearch = webSearch; - FileSearch = fileSearch; - CodeInterpreter = codeInterpreter; - Shell = shell; - ImageGeneration = imageGeneration; - Mcp = mcp; Custom = custom; - Namespace = @namespace; - ToolSearch = toolSearch; - ProgrammaticToolCalling = programmaticToolCalling; - Computer = computer; - ApplyPatch = applyPatch; } /// /// /// public object? Object => - ApplyPatch as object ?? - Computer as object ?? - ProgrammaticToolCalling as object ?? - ToolSearch as object ?? - Namespace as object ?? Custom as object ?? - Mcp as object ?? - ImageGeneration as object ?? - Shell as object ?? - CodeInterpreter as object ?? - FileSearch as object ?? - WebSearch as object ?? Function as object ; @@ -854,18 +161,7 @@ Function as object ///
public override string? ToString() => Function?.ToString() ?? - WebSearch?.ToString() ?? - FileSearch?.ToString() ?? - CodeInterpreter?.ToString() ?? - Shell?.ToString() ?? - ImageGeneration?.ToString() ?? - Mcp?.ToString() ?? - Custom?.ToString() ?? - Namespace?.ToString() ?? - ToolSearch?.ToString() ?? - ProgrammaticToolCalling?.ToString() ?? - Computer?.ToString() ?? - ApplyPatch?.ToString() + Custom?.ToString() ; /// @@ -873,26 +169,15 @@ Function as object /// public bool Validate() { - return IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && IsApplyPatch; + return IsFunction && !IsCustom || !IsFunction && IsCustom; } /// /// /// public TResult? Match( - global::System.Func? function = null, - global::System.Func? webSearch = null, - global::System.Func? fileSearch = null, - global::System.Func? codeInterpreter = null, - global::System.Func? shell = null, - global::System.Func? imageGeneration = null, - global::System.Func? mcp = null, - global::System.Func? custom = null, - global::System.Func? @namespace = null, - global::System.Func? toolSearch = null, - global::System.Func? programmaticToolCalling = null, - global::System.Func? computer = null, - global::System.Func? applyPatch = null, + global::System.Func? function = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -904,53 +189,9 @@ public bool Validate() { return function(__value0); } - else if (WebSearch is { } __value1 && webSearch != null) - { - return webSearch(__value1); - } - else if (FileSearch is { } __value2 && fileSearch != null) - { - return fileSearch(__value2); - } - else if (CodeInterpreter is { } __value3 && codeInterpreter != null) - { - return codeInterpreter(__value3); - } - else if (Shell is { } __value4 && shell != null) - { - return shell(__value4); - } - else if (ImageGeneration is { } __value5 && imageGeneration != null) - { - return imageGeneration(__value5); - } - else if (Mcp is { } __value6 && mcp != null) - { - return mcp(__value6); - } - else if (Custom is { } __value7 && custom != null) - { - return custom(__value7); - } - else if (Namespace is { } __value8 && @namespace != null) - { - return @namespace(__value8); - } - else if (ToolSearch is { } __value9 && toolSearch != null) - { - return toolSearch(__value9); - } - else if (ProgrammaticToolCalling is { } __value10 && programmaticToolCalling != null) - { - return programmaticToolCalling(__value10); - } - else if (Computer is { } __value11 && computer != null) - { - return computer(__value11); - } - else if (ApplyPatch is { } __value12 && applyPatch != null) + else if (Custom is { } __value1 && custom != null) { - return applyPatch(__value12); + return custom(__value1); } return default(TResult); @@ -960,31 +201,9 @@ public bool Validate() /// ///
public void Match( - global::System.Action? function = null, - - global::System.Action? webSearch = null, - - global::System.Action? fileSearch = null, - - global::System.Action? codeInterpreter = null, - - global::System.Action? shell = null, - - global::System.Action? imageGeneration = null, - - global::System.Action? mcp = null, - - global::System.Action? custom = null, + global::System.Action? function = null, - global::System.Action? @namespace = null, - - global::System.Action? toolSearch = null, - - global::System.Action? programmaticToolCalling = null, - - global::System.Action? computer = null, - - global::System.Action? applyPatch = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -996,53 +215,9 @@ public void Match( { function?.Invoke(__value0); } - else if (WebSearch is { } __value1) - { - webSearch?.Invoke(__value1); - } - else if (FileSearch is { } __value2) - { - fileSearch?.Invoke(__value2); - } - else if (CodeInterpreter is { } __value3) - { - codeInterpreter?.Invoke(__value3); - } - else if (Shell is { } __value4) - { - shell?.Invoke(__value4); - } - else if (ImageGeneration is { } __value5) - { - imageGeneration?.Invoke(__value5); - } - else if (Mcp is { } __value6) - { - mcp?.Invoke(__value6); - } - else if (Custom is { } __value7) + else if (Custom is { } __value1) { - custom?.Invoke(__value7); - } - else if (Namespace is { } __value8) - { - @namespace?.Invoke(__value8); - } - else if (ToolSearch is { } __value9) - { - toolSearch?.Invoke(__value9); - } - else if (ProgrammaticToolCalling is { } __value10) - { - programmaticToolCalling?.Invoke(__value10); - } - else if (Computer is { } __value11) - { - computer?.Invoke(__value11); - } - else if (ApplyPatch is { } __value12) - { - applyPatch?.Invoke(__value12); + custom?.Invoke(__value1); } } @@ -1050,19 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? function = null, - global::System.Action? webSearch = null, - global::System.Action? fileSearch = null, - global::System.Action? codeInterpreter = null, - global::System.Action? shell = null, - global::System.Action? imageGeneration = null, - global::System.Action? mcp = null, - global::System.Action? custom = null, - global::System.Action? @namespace = null, - global::System.Action? toolSearch = null, - global::System.Action? programmaticToolCalling = null, - global::System.Action? computer = null, - global::System.Action? applyPatch = null, + global::System.Action? function = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -1074,53 +238,9 @@ public void Switch( { function?.Invoke(__value0); } - else if (WebSearch is { } __value1) - { - webSearch?.Invoke(__value1); - } - else if (FileSearch is { } __value2) - { - fileSearch?.Invoke(__value2); - } - else if (CodeInterpreter is { } __value3) - { - codeInterpreter?.Invoke(__value3); - } - else if (Shell is { } __value4) - { - shell?.Invoke(__value4); - } - else if (ImageGeneration is { } __value5) - { - imageGeneration?.Invoke(__value5); - } - else if (Mcp is { } __value6) - { - mcp?.Invoke(__value6); - } - else if (Custom is { } __value7) - { - custom?.Invoke(__value7); - } - else if (Namespace is { } __value8) - { - @namespace?.Invoke(__value8); - } - else if (ToolSearch is { } __value9) - { - toolSearch?.Invoke(__value9); - } - else if (ProgrammaticToolCalling is { } __value10) - { - programmaticToolCalling?.Invoke(__value10); - } - else if (Computer is { } __value11) - { - computer?.Invoke(__value11); - } - else if (ApplyPatch is { } __value12) + else if (Custom is { } __value1) { - applyPatch?.Invoke(__value12); + custom?.Invoke(__value1); } } @@ -1132,31 +252,9 @@ public override int GetHashCode() var fields = new object?[] { Function, - typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), - WebSearch, - typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), - FileSearch, - typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), - CodeInterpreter, - typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), - Shell, - typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), - ImageGeneration, - typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), - Mcp, - typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), + typeof(global::tryAGI.OpenAI.ToolSearchOutputFunctionToolParam), Custom, - typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), - Namespace, - typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), - ToolSearch, - typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), - ProgrammaticToolCalling, - typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), - Computer, - typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), - ApplyPatch, - typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), + typeof(global::tryAGI.OpenAI.CustomToolParam), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1173,19 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem14 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Shell, other.Shell) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGeneration, other.ImageGeneration) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Namespace, other.Namespace) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearch, other.ToolSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ProgrammaticToolCalling, other.ProgrammaticToolCalling) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Computer, other.Computer) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatch, other.ApplyPatch) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs index 4782e46f5..5d7244183 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs @@ -12,7 +12,7 @@ namespace tryAGI.OpenAI /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type { get; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type { get; } /// /// A function tool available to the Responses backend when the Live model delegates a task. @@ -797,7 +797,7 @@ public ToolsItem15(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) /// /// public ToolsItem15( - global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? type, + global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? type, global::tryAGI.OpenAI.LiveFunctionToolInputParam? function, global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch, global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs index 7b065824f..7b17aa860 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs @@ -5,125 +5,670 @@ namespace tryAGI.OpenAI { /// - /// A function or custom tool that belongs to a namespace. + /// /// public readonly partial struct ToolsItem16 : global::System.IEquatable { /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type { get; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type { get; } + + /// + /// A function tool available to the Responses backend when the Live model delegates a task. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Function { get; init; } +#else + public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) + { + value = Function; + return IsFunction; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + + /// + /// A web search tool available to the Live session’s Responses backend. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? WebSearch { get; init; } +#else + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? WebSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearch))] +#endif + public bool IsWebSearch => WebSearch != null; + + /// + /// + /// + public bool TryPickWebSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) + { + value = WebSearch; + return IsWebSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => WebSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? FileSearch { get; init; } +#else + public global::tryAGI.OpenAI.LiveFileSearchToolInputParam? FileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] +#endif + public bool IsFileSearch => FileSearch != null; + + /// + /// + /// + public bool TryPickFileSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) + { + value = FileSearch; + return IsFileSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveFileSearchToolInputParam PickFileSearch() => FileSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? CodeInterpreter { get; init; } +#else + public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? CodeInterpreter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] +#endif + public bool IsCodeInterpreter => CodeInterpreter != null; + + /// + /// + /// + public bool TryPickCodeInterpreter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) + { + value = CodeInterpreter; + return IsCodeInterpreter; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam PickCodeInterpreter() => CodeInterpreter is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); + + /// + /// A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Shell { get; init; } +#else + public global::tryAGI.OpenAI.LiveHostedShellToolInputParam? Shell { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shell))] +#endif + public bool IsShell => Shell != null; + + /// + /// + /// + public bool TryPickShell( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) + { + value = Shell; + return IsShell; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveHostedShellToolInputParam PickShell() => Shell is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? ImageGeneration { get; init; } +#else + public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? ImageGeneration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGeneration))] +#endif + public bool IsImageGeneration => ImageGeneration != null; + + /// + /// + /// + public bool TryPickImageGeneration( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) + { + value = ImageGeneration; + return IsImageGeneration; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveImageGenerationToolInputParam PickImageGeneration() => ImageGeneration is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveMCPToolInputParam? Mcp { get; init; } +#else + public global::tryAGI.OpenAI.LiveMCPToolInputParam? Mcp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] +#endif + public bool IsMcp => Mcp != null; + + /// + /// + /// + public bool TryPickMcp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveMCPToolInputParam? value) + { + value = Mcp; + return IsMcp; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveMCPToolInputParam PickMcp() => Mcp is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveCustomToolInputParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.LiveCustomToolInputParam? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveCustomToolInputParam? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveCustomToolInputParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Namespace { get; init; } +#else + public global::tryAGI.OpenAI.LiveNamespaceToolInputParam? Namespace { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Namespace))] +#endif + public bool IsNamespace => Namespace != null; + + /// + /// + /// + public bool TryPickNamespace( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) + { + value = Namespace; + return IsNamespace; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveNamespaceToolInputParam PickNamespace() => Namespace is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? ToolSearch { get; init; } +#else + public global::tryAGI.OpenAI.LiveToolSearchToolInputParam? ToolSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolSearch))] +#endif + public bool IsToolSearch => ToolSearch != null; + + /// + /// + /// + public bool TryPickToolSearch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) + { + value = ToolSearch; + return IsToolSearch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveToolSearchToolInputParam PickToolSearch() => ToolSearch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? ProgrammaticToolCalling { get; init; } +#else + public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? ProgrammaticToolCalling { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProgrammaticToolCalling))] +#endif + public bool IsProgrammaticToolCalling => ProgrammaticToolCalling != null; + + /// + /// + /// + public bool TryPickProgrammaticToolCalling( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) + { + value = ProgrammaticToolCalling; + return IsProgrammaticToolCalling; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveProgrammaticToolInputParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveComputerToolInputParam? Computer { get; init; } +#else + public global::tryAGI.OpenAI.LiveComputerToolInputParam? Computer { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Computer))] +#endif + public bool IsComputer => Computer != null; + + /// + /// + /// + public bool TryPickComputer( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveComputerToolInputParam? value) + { + value = Computer; + return IsComputer; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveComputerToolInputParam PickComputer() => Computer is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? ApplyPatch { get; init; } +#else + public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? ApplyPatch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatch))] +#endif + public bool IsApplyPatch => ApplyPatch != null; + + /// + /// + /// + public bool TryPickApplyPatch( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) + { + value = ApplyPatch; + return IsApplyPatch; + } + + /// + /// + /// + public global::tryAGI.OpenAI.LiveApplyPatchToolInputParam PickApplyPatch() => ApplyPatch is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveFunctionToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveFunctionToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveFunctionToolInputParam?(ToolsItem16 @this) => @this.Function; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) + { + Function = value; + } + + /// + /// + /// + public static ToolsItem16 FromFunction(global::tryAGI.OpenAI.LiveFunctionToolInputParam? value) => new ToolsItem16(value); /// /// /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.BetaFunctionToolParam? Function { get; init; } -#else - public global::tryAGI.OpenAI.BetaFunctionToolParam? Function { get; } -#endif + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveWebSearchToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveWebSearchToolInputParam?)value); /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] -#endif - public bool IsFunction => Function != null; + public static implicit operator global::tryAGI.OpenAI.LiveWebSearchToolInputParam?(ToolsItem16 @this) => @this.WebSearch; /// /// /// - public bool TryPickFunction( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.BetaFunctionToolParam? value) + public ToolsItem16(global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) { - value = Function; - return IsFunction; + WebSearch = value; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam PickFunction() => Function is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + public static ToolsItem16 FromWebSearch(global::tryAGI.OpenAI.LiveWebSearchToolInputParam? value) => new ToolsItem16(value); /// - /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) + /// /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; init; } -#else - public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; } -#endif + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveFileSearchToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveFileSearchToolInputParam?)value); /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] -#endif - public bool IsCustom => Custom != null; + public static implicit operator global::tryAGI.OpenAI.LiveFileSearchToolInputParam?(ToolsItem16 @this) => @this.FileSearch; /// /// /// - public bool TryPickCustom( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::tryAGI.OpenAI.BetaCustomToolParam? value) + public ToolsItem16(global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) { - value = Custom; - return IsCustom; + FileSearch = value; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + public static ToolsItem16 FromFileSearch(global::tryAGI.OpenAI.LiveFileSearchToolInputParam? value) => new ToolsItem16(value); + /// /// /// - public static implicit operator ToolsItem16(global::tryAGI.OpenAI.BetaFunctionToolParam value) => new ToolsItem16((global::tryAGI.OpenAI.BetaFunctionToolParam?)value); + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.BetaFunctionToolParam?(ToolsItem16 @this) => @this.Function; + public static implicit operator global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam?(ToolsItem16 @this) => @this.CodeInterpreter; /// /// /// - public ToolsItem16(global::tryAGI.OpenAI.BetaFunctionToolParam? value) + public ToolsItem16(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) { - Function = value; + CodeInterpreter = value; + } + + /// + /// + /// + public static ToolsItem16 FromCodeInterpreter(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveHostedShellToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveHostedShellToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveHostedShellToolInputParam?(ToolsItem16 @this) => @this.Shell; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) + { + Shell = value; + } + + /// + /// + /// + public static ToolsItem16 FromShell(global::tryAGI.OpenAI.LiveHostedShellToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveImageGenerationToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveImageGenerationToolInputParam?(ToolsItem16 @this) => @this.ImageGeneration; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) + { + ImageGeneration = value; + } + + /// + /// + /// + public static ToolsItem16 FromImageGeneration(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveMCPToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveMCPToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveMCPToolInputParam?(ToolsItem16 @this) => @this.Mcp; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveMCPToolInputParam? value) + { + Mcp = value; } /// /// /// - public static ToolsItem16 FromFunction(global::tryAGI.OpenAI.BetaFunctionToolParam? value) => new ToolsItem16(value); + public static ToolsItem16 FromMcp(global::tryAGI.OpenAI.LiveMCPToolInputParam? value) => new ToolsItem16(value); /// /// /// - public static implicit operator ToolsItem16(global::tryAGI.OpenAI.BetaCustomToolParam value) => new ToolsItem16((global::tryAGI.OpenAI.BetaCustomToolParam?)value); + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveCustomToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveCustomToolInputParam?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.BetaCustomToolParam?(ToolsItem16 @this) => @this.Custom; + public static implicit operator global::tryAGI.OpenAI.LiveCustomToolInputParam?(ToolsItem16 @this) => @this.Custom; /// /// /// - public ToolsItem16(global::tryAGI.OpenAI.BetaCustomToolParam? value) + public ToolsItem16(global::tryAGI.OpenAI.LiveCustomToolInputParam? value) { Custom = value; } @@ -131,28 +676,176 @@ public ToolsItem16(global::tryAGI.OpenAI.BetaCustomToolParam? value) /// /// /// - public static ToolsItem16 FromCustom(global::tryAGI.OpenAI.BetaCustomToolParam? value) => new ToolsItem16(value); + public static ToolsItem16 FromCustom(global::tryAGI.OpenAI.LiveCustomToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveNamespaceToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveNamespaceToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveNamespaceToolInputParam?(ToolsItem16 @this) => @this.Namespace; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) + { + Namespace = value; + } + + /// + /// + /// + public static ToolsItem16 FromNamespace(global::tryAGI.OpenAI.LiveNamespaceToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveToolSearchToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveToolSearchToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveToolSearchToolInputParam?(ToolsItem16 @this) => @this.ToolSearch; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) + { + ToolSearch = value; + } + + /// + /// + /// + public static ToolsItem16 FromToolSearch(global::tryAGI.OpenAI.LiveToolSearchToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveProgrammaticToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveProgrammaticToolInputParam?(ToolsItem16 @this) => @this.ProgrammaticToolCalling; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) + { + ProgrammaticToolCalling = value; + } + + /// + /// + /// + public static ToolsItem16 FromProgrammaticToolCalling(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveComputerToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveComputerToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveComputerToolInputParam?(ToolsItem16 @this) => @this.Computer; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveComputerToolInputParam? value) + { + Computer = value; + } + + /// + /// + /// + public static ToolsItem16 FromComputer(global::tryAGI.OpenAI.LiveComputerToolInputParam? value) => new ToolsItem16(value); + + /// + /// + /// + public static implicit operator ToolsItem16(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam value) => new ToolsItem16((global::tryAGI.OpenAI.LiveApplyPatchToolInputParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.LiveApplyPatchToolInputParam?(ToolsItem16 @this) => @this.ApplyPatch; + + /// + /// + /// + public ToolsItem16(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) + { + ApplyPatch = value; + } + + /// + /// + /// + public static ToolsItem16 FromApplyPatch(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? value) => new ToolsItem16(value); /// /// /// public ToolsItem16( - global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? type, - global::tryAGI.OpenAI.BetaFunctionToolParam? function, - global::tryAGI.OpenAI.BetaCustomToolParam? custom + global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? type, + global::tryAGI.OpenAI.LiveFunctionToolInputParam? function, + global::tryAGI.OpenAI.LiveWebSearchToolInputParam? webSearch, + global::tryAGI.OpenAI.LiveFileSearchToolInputParam? fileSearch, + global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam? codeInterpreter, + global::tryAGI.OpenAI.LiveHostedShellToolInputParam? shell, + global::tryAGI.OpenAI.LiveImageGenerationToolInputParam? imageGeneration, + global::tryAGI.OpenAI.LiveMCPToolInputParam? mcp, + global::tryAGI.OpenAI.LiveCustomToolInputParam? custom, + global::tryAGI.OpenAI.LiveNamespaceToolInputParam? @namespace, + global::tryAGI.OpenAI.LiveToolSearchToolInputParam? toolSearch, + global::tryAGI.OpenAI.LiveProgrammaticToolInputParam? programmaticToolCalling, + global::tryAGI.OpenAI.LiveComputerToolInputParam? computer, + global::tryAGI.OpenAI.LiveApplyPatchToolInputParam? applyPatch ) { Type = type; Function = function; + WebSearch = webSearch; + FileSearch = fileSearch; + CodeInterpreter = codeInterpreter; + Shell = shell; + ImageGeneration = imageGeneration; + Mcp = mcp; Custom = custom; + Namespace = @namespace; + ToolSearch = toolSearch; + ProgrammaticToolCalling = programmaticToolCalling; + Computer = computer; + ApplyPatch = applyPatch; } /// /// /// public object? Object => + ApplyPatch as object ?? + Computer as object ?? + ProgrammaticToolCalling as object ?? + ToolSearch as object ?? + Namespace as object ?? Custom as object ?? + Mcp as object ?? + ImageGeneration as object ?? + Shell as object ?? + CodeInterpreter as object ?? + FileSearch as object ?? + WebSearch as object ?? Function as object ; @@ -161,7 +854,18 @@ Function as object /// public override string? ToString() => Function?.ToString() ?? - Custom?.ToString() + WebSearch?.ToString() ?? + FileSearch?.ToString() ?? + CodeInterpreter?.ToString() ?? + Shell?.ToString() ?? + ImageGeneration?.ToString() ?? + Mcp?.ToString() ?? + Custom?.ToString() ?? + Namespace?.ToString() ?? + ToolSearch?.ToString() ?? + ProgrammaticToolCalling?.ToString() ?? + Computer?.ToString() ?? + ApplyPatch?.ToString() ; /// @@ -169,15 +873,26 @@ Function as object /// public bool Validate() { - return IsFunction && !IsCustom || !IsFunction && IsCustom; + return IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && IsProgrammaticToolCalling && !IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && IsComputer && !IsApplyPatch || !IsFunction && !IsWebSearch && !IsFileSearch && !IsCodeInterpreter && !IsShell && !IsImageGeneration && !IsMcp && !IsCustom && !IsNamespace && !IsToolSearch && !IsProgrammaticToolCalling && !IsComputer && IsApplyPatch; } /// /// /// public TResult? Match( - global::System.Func? function = null, - global::System.Func? custom = null, + global::System.Func? function = null, + global::System.Func? webSearch = null, + global::System.Func? fileSearch = null, + global::System.Func? codeInterpreter = null, + global::System.Func? shell = null, + global::System.Func? imageGeneration = null, + global::System.Func? mcp = null, + global::System.Func? custom = null, + global::System.Func? @namespace = null, + global::System.Func? toolSearch = null, + global::System.Func? programmaticToolCalling = null, + global::System.Func? computer = null, + global::System.Func? applyPatch = null, bool validate = true) { if (validate) @@ -189,9 +904,53 @@ public bool Validate() { return function(__value0); } - else if (Custom is { } __value1 && custom != null) + else if (WebSearch is { } __value1 && webSearch != null) + { + return webSearch(__value1); + } + else if (FileSearch is { } __value2 && fileSearch != null) + { + return fileSearch(__value2); + } + else if (CodeInterpreter is { } __value3 && codeInterpreter != null) + { + return codeInterpreter(__value3); + } + else if (Shell is { } __value4 && shell != null) + { + return shell(__value4); + } + else if (ImageGeneration is { } __value5 && imageGeneration != null) + { + return imageGeneration(__value5); + } + else if (Mcp is { } __value6 && mcp != null) + { + return mcp(__value6); + } + else if (Custom is { } __value7 && custom != null) + { + return custom(__value7); + } + else if (Namespace is { } __value8 && @namespace != null) + { + return @namespace(__value8); + } + else if (ToolSearch is { } __value9 && toolSearch != null) + { + return toolSearch(__value9); + } + else if (ProgrammaticToolCalling is { } __value10 && programmaticToolCalling != null) + { + return programmaticToolCalling(__value10); + } + else if (Computer is { } __value11 && computer != null) + { + return computer(__value11); + } + else if (ApplyPatch is { } __value12 && applyPatch != null) { - return custom(__value1); + return applyPatch(__value12); } return default(TResult); @@ -201,9 +960,31 @@ public bool Validate() /// /// public void Match( - global::System.Action? function = null, + global::System.Action? function = null, + + global::System.Action? webSearch = null, + + global::System.Action? fileSearch = null, + + global::System.Action? codeInterpreter = null, + + global::System.Action? shell = null, + + global::System.Action? imageGeneration = null, + + global::System.Action? mcp = null, + + global::System.Action? custom = null, - global::System.Action? custom = null, + global::System.Action? @namespace = null, + + global::System.Action? toolSearch = null, + + global::System.Action? programmaticToolCalling = null, + + global::System.Action? computer = null, + + global::System.Action? applyPatch = null, bool validate = true) { if (validate) @@ -215,9 +996,53 @@ public void Match( { function?.Invoke(__value0); } - else if (Custom is { } __value1) + else if (WebSearch is { } __value1) + { + webSearch?.Invoke(__value1); + } + else if (FileSearch is { } __value2) + { + fileSearch?.Invoke(__value2); + } + else if (CodeInterpreter is { } __value3) + { + codeInterpreter?.Invoke(__value3); + } + else if (Shell is { } __value4) + { + shell?.Invoke(__value4); + } + else if (ImageGeneration is { } __value5) + { + imageGeneration?.Invoke(__value5); + } + else if (Mcp is { } __value6) + { + mcp?.Invoke(__value6); + } + else if (Custom is { } __value7) { - custom?.Invoke(__value1); + custom?.Invoke(__value7); + } + else if (Namespace is { } __value8) + { + @namespace?.Invoke(__value8); + } + else if (ToolSearch is { } __value9) + { + toolSearch?.Invoke(__value9); + } + else if (ProgrammaticToolCalling is { } __value10) + { + programmaticToolCalling?.Invoke(__value10); + } + else if (Computer is { } __value11) + { + computer?.Invoke(__value11); + } + else if (ApplyPatch is { } __value12) + { + applyPatch?.Invoke(__value12); } } @@ -225,8 +1050,19 @@ public void Match( /// /// public void Switch( - global::System.Action? function = null, - global::System.Action? custom = null, + global::System.Action? function = null, + global::System.Action? webSearch = null, + global::System.Action? fileSearch = null, + global::System.Action? codeInterpreter = null, + global::System.Action? shell = null, + global::System.Action? imageGeneration = null, + global::System.Action? mcp = null, + global::System.Action? custom = null, + global::System.Action? @namespace = null, + global::System.Action? toolSearch = null, + global::System.Action? programmaticToolCalling = null, + global::System.Action? computer = null, + global::System.Action? applyPatch = null, bool validate = true) { if (validate) @@ -238,9 +1074,53 @@ public void Switch( { function?.Invoke(__value0); } - else if (Custom is { } __value1) + else if (WebSearch is { } __value1) + { + webSearch?.Invoke(__value1); + } + else if (FileSearch is { } __value2) + { + fileSearch?.Invoke(__value2); + } + else if (CodeInterpreter is { } __value3) + { + codeInterpreter?.Invoke(__value3); + } + else if (Shell is { } __value4) + { + shell?.Invoke(__value4); + } + else if (ImageGeneration is { } __value5) + { + imageGeneration?.Invoke(__value5); + } + else if (Mcp is { } __value6) + { + mcp?.Invoke(__value6); + } + else if (Custom is { } __value7) + { + custom?.Invoke(__value7); + } + else if (Namespace is { } __value8) + { + @namespace?.Invoke(__value8); + } + else if (ToolSearch is { } __value9) + { + toolSearch?.Invoke(__value9); + } + else if (ProgrammaticToolCalling is { } __value10) + { + programmaticToolCalling?.Invoke(__value10); + } + else if (Computer is { } __value11) + { + computer?.Invoke(__value11); + } + else if (ApplyPatch is { } __value12) { - custom?.Invoke(__value1); + applyPatch?.Invoke(__value12); } } @@ -252,9 +1132,31 @@ public override int GetHashCode() var fields = new object?[] { Function, - typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), + typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), + WebSearch, + typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), + FileSearch, + typeof(global::tryAGI.OpenAI.LiveFileSearchToolInputParam), + CodeInterpreter, + typeof(global::tryAGI.OpenAI.LiveCodeInterpreterToolInputParam), + Shell, + typeof(global::tryAGI.OpenAI.LiveHostedShellToolInputParam), + ImageGeneration, + typeof(global::tryAGI.OpenAI.LiveImageGenerationToolInputParam), + Mcp, + typeof(global::tryAGI.OpenAI.LiveMCPToolInputParam), Custom, - typeof(global::tryAGI.OpenAI.BetaCustomToolParam), + typeof(global::tryAGI.OpenAI.LiveCustomToolInputParam), + Namespace, + typeof(global::tryAGI.OpenAI.LiveNamespaceToolInputParam), + ToolSearch, + typeof(global::tryAGI.OpenAI.LiveToolSearchToolInputParam), + ProgrammaticToolCalling, + typeof(global::tryAGI.OpenAI.LiveProgrammaticToolInputParam), + Computer, + typeof(global::tryAGI.OpenAI.LiveComputerToolInputParam), + ApplyPatch, + typeof(global::tryAGI.OpenAI.LiveApplyPatchToolInputParam), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +1173,19 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem16 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Shell, other.Shell) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGeneration, other.ImageGeneration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Namespace, other.Namespace) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolSearch, other.ToolSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProgrammaticToolCalling, other.ProgrammaticToolCalling) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Computer, other.Computer) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatch, other.ApplyPatch) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.Json.g.cs new file mode 100644 index 000000000..ebc429fa6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ToolsItem17 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolsItem17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolsItem17), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolsItem17?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolsItem17? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolsItem17? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolsItem17), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolsItem17?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.g.cs new file mode 100644 index 000000000..9702f2fae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem17.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A function or custom tool that belongs to a namespace. + /// + public readonly partial struct ToolsItem17 : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaFunctionToolParam? Function { get; init; } +#else + public global::tryAGI.OpenAI.BetaFunctionToolParam? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaFunctionToolParam? value) + { + value = Function; + return IsFunction; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaFunctionToolParam PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + + /// + /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ToolsItem17(global::tryAGI.OpenAI.BetaFunctionToolParam value) => new ToolsItem17((global::tryAGI.OpenAI.BetaFunctionToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaFunctionToolParam?(ToolsItem17 @this) => @this.Function; + + /// + /// + /// + public ToolsItem17(global::tryAGI.OpenAI.BetaFunctionToolParam? value) + { + Function = value; + } + + /// + /// + /// + public static ToolsItem17 FromFunction(global::tryAGI.OpenAI.BetaFunctionToolParam? value) => new ToolsItem17(value); + + /// + /// + /// + public static implicit operator ToolsItem17(global::tryAGI.OpenAI.BetaCustomToolParam value) => new ToolsItem17((global::tryAGI.OpenAI.BetaCustomToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaCustomToolParam?(ToolsItem17 @this) => @this.Custom; + + /// + /// + /// + public ToolsItem17(global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + Custom = value; + } + + /// + /// + /// + public static ToolsItem17 FromCustom(global::tryAGI.OpenAI.BetaCustomToolParam? value) => new ToolsItem17(value); + + /// + /// + /// + public ToolsItem17( + global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? type, + global::tryAGI.OpenAI.BetaFunctionToolParam? function, + global::tryAGI.OpenAI.BetaCustomToolParam? custom + ) + { + Type = type; + + Function = function; + Custom = custom; + } + + /// + /// + /// + public object? Object => + Custom as object ?? + Function as object + ; + + /// + /// + /// + public override string? ToString() => + Function?.ToString() ?? + Custom?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFunction && !IsCustom || !IsFunction && IsCustom; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? function = null, + global::System.Func? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0 && function != null) + { + return function(__value0); + } + else if (Custom is { } __value1 && custom != null) + { + return custom(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? function = null, + + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (Custom is { } __value1) + { + custom?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? function = null, + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (Custom is { } __value1) + { + custom?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Function, + typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), + Custom, + typeof(global::tryAGI.OpenAI.BetaCustomToolParam), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolsItem17 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + ; + } + + /// + /// + /// + public static bool operator ==(ToolsItem17 obj1, ToolsItem17 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolsItem17 obj1, ToolsItem17 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ToolsItem17 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.Json.g.cs new file mode 100644 index 000000000..708e664cf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ToolsItem18 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolsItem18? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolsItem18), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolsItem18?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ToolsItem18? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ToolsItem18? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ToolsItem18), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolsItem18?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.g.cs new file mode 100644 index 000000000..09c35ecb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem18.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A function or custom tool loaded into a namespace by tool search. + /// + public readonly partial struct ToolsItem18 : global::System.IEquatable + { + /// + /// + /// + public global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? Function { get; init; } +#else + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public bool TryPickFunction( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? value) + { + value = Function; + return IsFunction; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam PickFunction() => Function is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); + + /// + /// A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; init; } +#else + public global::tryAGI.OpenAI.BetaCustomToolParam? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ToolsItem18(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam value) => new ToolsItem18((global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam?(ToolsItem18 @this) => @this.Function; + + /// + /// + /// + public ToolsItem18(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? value) + { + Function = value; + } + + /// + /// + /// + public static ToolsItem18 FromFunction(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? value) => new ToolsItem18(value); + + /// + /// + /// + public static implicit operator ToolsItem18(global::tryAGI.OpenAI.BetaCustomToolParam value) => new ToolsItem18((global::tryAGI.OpenAI.BetaCustomToolParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaCustomToolParam?(ToolsItem18 @this) => @this.Custom; + + /// + /// + /// + public ToolsItem18(global::tryAGI.OpenAI.BetaCustomToolParam? value) + { + Custom = value; + } + + /// + /// + /// + public static ToolsItem18 FromCustom(global::tryAGI.OpenAI.BetaCustomToolParam? value) => new ToolsItem18(value); + + /// + /// + /// + public ToolsItem18( + global::tryAGI.OpenAI.BetaToolSearchOutputNamespaceToolParamToolDiscriminatorType? type, + global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam? function, + global::tryAGI.OpenAI.BetaCustomToolParam? custom + ) + { + Type = type; + + Function = function; + Custom = custom; + } + + /// + /// + /// + public object? Object => + Custom as object ?? + Function as object + ; + + /// + /// + /// + public override string? ToString() => + Function?.ToString() ?? + Custom?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFunction && !IsCustom || !IsFunction && IsCustom; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? function = null, + global::System.Func? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0 && function != null) + { + return function(__value0); + } + else if (Custom is { } __value1 && custom != null) + { + return custom(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? function = null, + + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (Custom is { } __value1) + { + custom?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? function = null, + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Function is { } __value0) + { + function?.Invoke(__value0); + } + else if (Custom is { } __value1) + { + custom?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Function, + typeof(global::tryAGI.OpenAI.BetaToolSearchOutputFunctionToolParam), + Custom, + typeof(global::tryAGI.OpenAI.BetaCustomToolParam), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolsItem18 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + ; + } + + /// + /// + /// + public static bool operator ==(ToolsItem18 obj1, ToolsItem18 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolsItem18 obj1, ToolsItem18 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ToolsItem18 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateAgentParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateAgentParams.g.cs index e6d1dc247..6caee352e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateAgentParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateAgentParams.g.cs @@ -57,7 +57,7 @@ public sealed partial class UpdateAgentParams public string? Name { get; set; } /// - /// Tools available to the agent. + /// Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } @@ -96,7 +96,7 @@ public sealed partial class UpdateAgentParams /// A replacement name. Omit to leave unchanged, or pass null to clear it. /// /// - /// Tools available to the agent. + /// Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.Json.g.cs new file mode 100644 index 000000000..fea669eed --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class UpdateVaultParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateVaultParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.UpdateVaultParams), + jsonSerializerContext) as global::tryAGI.OpenAI.UpdateVaultParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateVaultParams? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.UpdateVaultParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.UpdateVaultParams), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.UpdateVaultParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.g.cs new file mode 100644 index 000000000..b58e9479c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParams.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Fields to replace on an active vault. + /// + public sealed partial class UpdateVaultParams + { + /// + /// Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + + /// + /// A replacement name. Omit to leave unchanged, or pass null to clear it. The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. + /// + /// + /// A replacement name. Omit to leave unchanged, or pass null to clear it. The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateVaultParams( + global::System.Collections.Generic.Dictionary? metadata, + string? name) + { + this.Metadata = metadata; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateVaultParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.Json.g.cs new file mode 100644 index 000000000..54f12f2d6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class UpdateVaultParamsMetadata + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateVaultParamsMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.UpdateVaultParamsMetadata), + jsonSerializerContext) as global::tryAGI.OpenAI.UpdateVaultParamsMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.UpdateVaultParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.UpdateVaultParamsMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.UpdateVaultParamsMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.UpdateVaultParamsMetadata; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.g.cs new file mode 100644 index 000000000..13d6ff1b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UpdateVaultParamsMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. + /// + public sealed partial class UpdateVaultParamsMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs index 64d2b7cff..716b41054 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs @@ -151,6 +151,16 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, JsonSerializerContextProvider = JsonSerializerContextProvider, }; + /// + /// + /// + public DecisionsClient Decisions => new DecisionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + CreateIdempotencyKey = CreateIdempotencyKey, + JsonSerializerContextProvider = JsonSerializerContextProvider, + }; + /// /// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs index f906b965f..267fa32b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs @@ -28,6 +28,7 @@ public partial class VaultsClient partial void PrepareListVaultCredentialsArguments( global::System.Net.Http.HttpClient httpClient, ref string vaultId, + global::System.Collections.Generic.Dictionary? metadata, ref global::tryAGI.OpenAI.ListOrderParam? order, ref long? limit, ref global::tryAGI.OpenAI.VaultStatusFilterParam? status, @@ -36,6 +37,7 @@ partial void PrepareListVaultCredentialsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string vaultId, + global::System.Collections.Generic.Dictionary? metadata, global::tryAGI.OpenAI.ListOrderParam? order, long? limit, global::tryAGI.OpenAI.VaultStatusFilterParam? status, @@ -54,6 +56,7 @@ partial void ProcessListVaultCredentialsResponseContent( /// Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -68,6 +71,7 @@ partial void ProcessListVaultCredentialsResponseContent( /// public async global::System.Threading.Tasks.Task ListVaultCredentialsAsync( string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -77,6 +81,7 @@ partial void ProcessListVaultCredentialsResponseContent( { var __response = await ListVaultCredentialsAsResponseAsync( vaultId: vaultId, + metadata: metadata, order: order, limit: limit, status: status, @@ -92,6 +97,7 @@ partial void ProcessListVaultCredentialsResponseContent( /// Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -106,6 +112,7 @@ partial void ProcessListVaultCredentialsResponseContent( /// public async global::System.Threading.Tasks.Task> ListVaultCredentialsAsResponseAsync( string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -118,6 +125,7 @@ partial void ProcessListVaultCredentialsResponseContent( PrepareListVaultCredentialsArguments( httpClient: HttpClient, vaultId: ref vaultId, + metadata: metadata, order: ref order, limit: ref limit, status: ref status, @@ -150,6 +158,7 @@ partial void ProcessListVaultCredentialsResponseContent( path: $"/vaults/{vaultId}/credentials", baseUri: HttpClient.BaseAddress); __pathBuilder + .AddOptionalParameter("metadata", metadata?.ToString()) .AddOptionalParameter("order", order?.ToValueString()) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("status", status?.Match( @@ -199,6 +208,7 @@ partial void ProcessListVaultCredentialsResponseContent( httpClient: HttpClient, httpRequestMessage: __httpRequest, vaultId: vaultId, + metadata: metadata, order: order, limit: limit, status: status, @@ -741,6 +751,7 @@ partial void ProcessListVaultCredentialsResponseContent( /// Wraps ListVaultCredentialsAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.VaultCredentialResource> that auto-pages over the response. /// /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -752,7 +763,8 @@ partial void ProcessListVaultCredentialsResponseContent( /// Initial cursor to start enumerating from. Defaults to null (first page). /// public global::System.Collections.Generic.IAsyncEnumerable ListVaultCredentialsAutoPagingAsync( - string vaultId, global::tryAGI.OpenAI.ListOrderParam? order = default, + string vaultId, global::System.Collections.Generic.Dictionary? metadata = default, + global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, string? after = null, @@ -761,6 +773,7 @@ partial void ProcessListVaultCredentialsResponseContent( return global::tryAGI.OpenAI.AutoSDKPager.CursorAsync( fetchPage: (__cursor, __ct) => ListVaultCredentialsAsync( vaultId: vaultId, + metadata: metadata, order: order, limit: limit, status: status, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs index 94509d60a..522c2c0ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs @@ -27,6 +27,7 @@ public partial class VaultsClient }; partial void PrepareListVaultsArguments( global::System.Net.Http.HttpClient httpClient, + global::System.Collections.Generic.Dictionary? metadata, ref global::tryAGI.OpenAI.ListOrderParam? order, ref long? limit, ref global::tryAGI.OpenAI.VaultStatusFilterParam? status, @@ -34,6 +35,7 @@ partial void PrepareListVaultsArguments( partial void PrepareListVaultsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Collections.Generic.Dictionary? metadata, global::tryAGI.OpenAI.ListOrderParam? order, long? limit, global::tryAGI.OpenAI.VaultStatusFilterParam? status, @@ -51,6 +53,7 @@ partial void ProcessListVaultsResponseContent( /// List vaults
/// Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -64,6 +67,7 @@ partial void ProcessListVaultsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListVaultsAsync( + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -72,6 +76,7 @@ partial void ProcessListVaultsResponseContent( global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ListVaultsAsResponseAsync( + metadata: metadata, order: order, limit: limit, status: status, @@ -86,6 +91,7 @@ partial void ProcessListVaultsResponseContent( /// List vaults
/// Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -99,6 +105,7 @@ partial void ProcessListVaultsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ListVaultsAsResponseAsync( + global::System.Collections.Generic.Dictionary? metadata = default, global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, @@ -110,6 +117,7 @@ partial void ProcessListVaultsResponseContent( client: HttpClient); PrepareListVaultsArguments( httpClient: HttpClient, + metadata: metadata, order: ref order, limit: ref limit, status: ref status, @@ -142,6 +150,7 @@ partial void ProcessListVaultsResponseContent( path: "/vaults", baseUri: HttpClient.BaseAddress); __pathBuilder + .AddOptionalParameter("metadata", metadata?.ToString()) .AddOptionalParameter("order", order?.ToValueString()) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("status", status?.Match( @@ -190,6 +199,7 @@ partial void ProcessListVaultsResponseContent( PrepareListVaultsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + metadata: metadata, order: order, limit: limit, status: status, @@ -731,6 +741,7 @@ partial void ProcessListVaultsResponseContent( /// /// Wraps ListVaultsAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.VaultResource> that auto-pages over the response. /// + /// /// /// The order in which paginated resources are returned.
/// Default Value: desc @@ -742,7 +753,8 @@ partial void ProcessListVaultsResponseContent( /// Initial cursor to start enumerating from. Defaults to null (first page). /// public global::System.Collections.Generic.IAsyncEnumerable ListVaultsAutoPagingAsync( - global::tryAGI.OpenAI.ListOrderParam? order = default, + global::System.Collections.Generic.Dictionary? metadata = default, + global::tryAGI.OpenAI.ListOrderParam? order = default, long? limit = default, global::tryAGI.OpenAI.VaultStatusFilterParam? status = default, string? after = null, @@ -750,6 +762,7 @@ partial void ProcessListVaultsResponseContent( { return global::tryAGI.OpenAI.AutoSDKPager.CursorAsync( fetchPage: (__cursor, __ct) => ListVaultsAsync( + metadata: metadata, order: order, limit: limit, status: status, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.UpdateVault.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.UpdateVault.g.cs new file mode 100644 index 000000000..7a5bcd72d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.UpdateVault.g.cs @@ -0,0 +1,738 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class VaultsClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateVaultSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateVaultSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_UpdateVaultSecurityRequirement0, + }; + partial void PrepareUpdateVaultArguments( + global::System.Net.Http.HttpClient httpClient, + ref string vaultId, + global::tryAGI.OpenAI.UpdateVaultParams request); + partial void PrepareUpdateVaultRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string vaultId, + global::tryAGI.OpenAI.UpdateVaultParams request); + partial void ProcessUpdateVaultResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateVaultResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateVaultAsync( + string vaultId, + + global::tryAGI.OpenAI.UpdateVaultParams request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateVaultAsResponseAsync( + vaultId: vaultId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateVaultAsResponseAsync( + string vaultId, + + global::tryAGI.OpenAI.UpdateVaultParams request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateVaultArguments( + httpClient: HttpClient, + vaultId: ref vaultId, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateVaultSecurityRequirements, + operationName: "UpdateVaultAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/vaults/{vaultId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateVaultRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + vaultId: vaultId, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateVault", + methodName: "UpdateVaultAsync", + pathTemplate: "$\"/vaults/{vaultId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateVault", + methodName: "UpdateVaultAsync", + pathTemplate: "$\"/vaults/{vaultId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateVault", + methodName: "UpdateVaultAsync", + pathTemplate: "$\"/vaults/{vaultId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateVaultResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateVault", + methodName: "UpdateVaultAsync", + pathTemplate: "$\"/vaults/{vaultId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateVault", + methodName: "UpdateVaultAsync", + pathTemplate: "$\"/vaults/{vaultId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // The request was invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication or project context was missing. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The API key lacks the required management permission. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The requested vault or credential was not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request conflicted with the current vault state. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // An internal error occurred. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The service is temporarily unavailable. + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::tryAGI.OpenAI.ErrorResponse2? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::tryAGI.OpenAI.ErrorResponse2.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateVaultResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::tryAGI.OpenAI.VaultResource.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.VaultResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update a vault
+ /// Updates the name or metadata of an active vault. Omitted fields remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + ///
+ /// + /// + /// Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. + /// + /// + /// A replacement name. Omit to leave unchanged, or pass null to clear it. The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateVaultAsync( + string vaultId, + global::System.Collections.Generic.Dictionary? metadata = default, + string? name = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.UpdateVaultParams + { + Metadata = metadata, + Name = name, + }; + + return await UpdateVaultAsync( + vaultId: vaultId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 6ca751547..0239cbe84 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -32257,6 +32257,73 @@ paths: "first_id": "cthr_abc123", "last_id": "cthr_def456" } + /decisions: + post: + operationId: createDecision + summary: Create a decision + description: >- + Evaluate ordered classification and scoring questions against shared + input. Answers are returned in question order. + + + Supply input as a string or user messages containing text and inline + images. Only user messages with `input_text` and `input_image` parts are + supported; non-user roles, function calls, files, audio, and item + references are not supported. Images require a data URL, not an external + URL or file ID. At most 128 images are allowed across the request. + + + Each question can return a refusal instead of a scored answer. A refusal + has type `refusal` and the corresponding question name, or null if + unnamed. + tags: + - Decisions + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DecisionRequest" + required: true + responses: + "200": + description: The answers and token usage. + content: + application/json: + schema: + $ref: "#/components/schemas/DecisionResponse" + x-oaiMeta: + group: decisions + examples: + request: + curl: | + curl https://api.openai.com/v1/decisions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $OPENAI_API_KEY" \ + -d '{ + "model": "gpt-6-luna", + "input": "The package arrived with a broken screen.", + "questions": [ + { + "type": "predicate", + "name": "damaged", + "instructions": "Does the customer report a damaged item?" + } + ] + }' + response: > + { + "model": "gpt-6-luna", + "answers": [ + {"type": "predicate", "name": "damaged", "probability": 0.95} + ], + "usage": { + "input_tokens": 42, + "input_tokens_details": {"cached_tokens": 0, "cache_write_tokens": 0}, + "output_tokens": 0, + "output_tokens_details": {"reasoning_tokens": 0}, + "total_tokens": 42 + } + } /agents/environments/{environment_id}: get: operationId: retrieveAgentEnvironment @@ -32486,6 +32553,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "429": + description: The Files API rate limit for your user has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "500": description: An internal error occurred. content: @@ -34123,6 +34196,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" + "429": + description: The Files API rate limit for your user has been exceeded. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" "500": description: An internal error occurred. content: @@ -35294,6 +35373,27 @@ paths: tags: - Vaults parameters: + - name: metadata + in: query + required: false + schema: + type: object + additionalProperties: + type: string + minLength: 0 + maxLength: 512 + propertyNames: + type: string + minLength: 1 + maxLength: 64 + minProperties: 0 + maxProperties: 16 + description: Exact string matches supplied as `metadata[key]=value`. All + supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 + characters and values up to 512 characters. Filtering is eventually + consistent; metadata changes may take time to appear. + style: deepObject + explode: true - name: order in: query required: false @@ -35506,179 +35606,11 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" - delete: - operationId: deleteVault - summary: Delete a vault - description: Deletes a vault and all its credentials. See - [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). - tags: - - Vaults - parameters: - - name: vault_id - in: path - required: true - schema: - type: string - minLength: 0 - maxLength: 1048576 - description: The ID of the vault. - responses: - "200": - description: The deleted vault. - content: - application/json: - schema: - $ref: "#/components/schemas/DeletedVaultResource" - "400": - description: The request was invalid. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "401": - description: Authentication or project context was missing. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "403": - description: The API key lacks the required management permission. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "404": - description: The requested vault or credential was not found. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "409": - description: The request conflicted with the current vault state. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "500": - description: An internal error occurred. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "503": - description: The service is temporarily unavailable. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - /vaults/{vault_id}/credentials: - get: - operationId: listVaultCredentials - summary: List vault credentials - description: Lists a vault's credentials using ID-based pagination without - returning secret values. See - [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). - tags: - - Vaults - parameters: - - name: vault_id - in: path - required: true - schema: - type: string - minLength: 0 - maxLength: 1048576 - description: The ID of the vault. - - name: order - in: query - required: false - schema: - $ref: "#/components/schemas/ListOrderParam" - default: desc - description: Sort order by the `created_at` timestamp. Use `asc` for ascending - order or `desc` for descending order. Defaults to `desc`. - - name: limit - in: query - required: false - schema: - type: - - integer - - "null" - format: int64 - minimum: 0 - description: The maximum number of resources to return. Defaults to 20. Values - are clamped between 1 and 100. - - name: status - in: query - required: false - schema: - $ref: "#/components/schemas/VaultStatusFilterParam" - description: Filter by one status or a list, such as `status=active` or - `status[]=active&status[]=archived`. Both statuses are included by - default. - - name: after - in: query - required: false - schema: - type: string - minLength: 0 - maxLength: 1048576 - description: Return resources after this resource ID in the selected order. - responses: - "200": - description: A page of vault credentials. - content: - application/json: - schema: - $ref: "#/components/schemas/VaultCredentialListResource" - description: A page of credentials in a vault. - "400": - description: The request was invalid. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "401": - description: Authentication or project context was missing. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "403": - description: The API key lacks the required management permission. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "404": - description: The requested vault or credential was not found. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "409": - description: The request conflicted with the current vault state. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "500": - description: An internal error occurred. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" - "503": - description: The service is temporarily unavailable. - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse-2" post: - operationId: createVaultCredential - summary: Create a vault credential - description: Creates a vault credential. Secret values are write-only and are - never returned. See + operationId: updateVault + summary: Update a vault + description: Updates the name or metadata of an active vault. Omitted fields + remain unchanged. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). tags: - Vaults @@ -35695,14 +35627,15 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateVaultCredentialParams" + $ref: "#/components/schemas/UpdateVaultParams" + required: true responses: - "201": - description: The created vault credential without secret values. + "200": + description: The updated vault. content: application/json: schema: - $ref: "#/components/schemas/VaultCredentialResource" + $ref: "#/components/schemas/VaultResource" "400": description: The request was invalid. content: @@ -35745,12 +35678,10 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse-2" - /vaults/{vault_id}/credentials/{credential_id}: - get: - operationId: retrieveVaultCredential - summary: Retrieve a vault credential - description: Retrieves vault credential metadata without returning secret - values. See + delete: + operationId: deleteVault + summary: Delete a vault + description: Deletes a vault and all its credentials. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). tags: - Vaults @@ -35763,21 +35694,283 @@ paths: minLength: 0 maxLength: 1048576 description: The ID of the vault. - - name: credential_id - in: path - required: true - schema: - type: string - minLength: 0 - maxLength: 1048576 - description: The ID of the vault credential. responses: "200": - description: The requested vault credential without secret values. + description: The deleted vault. content: application/json: schema: - $ref: "#/components/schemas/VaultCredentialResource" + $ref: "#/components/schemas/DeletedVaultResource" + "400": + description: The request was invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "401": + description: Authentication or project context was missing. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required management permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "404": + description: The requested vault or credential was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "409": + description: The request conflicted with the current vault state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "500": + description: An internal error occurred. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "503": + description: The service is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + /vaults/{vault_id}/credentials: + get: + operationId: listVaultCredentials + summary: List vault credentials + description: Lists a vault's credentials using ID-based pagination without + returning secret values. See + [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + tags: + - Vaults + parameters: + - name: vault_id + in: path + required: true + schema: + type: string + minLength: 0 + maxLength: 1048576 + description: The ID of the vault. + - name: metadata + in: query + required: false + schema: + type: object + additionalProperties: + type: string + minLength: 0 + maxLength: 512 + propertyNames: + type: string + minLength: 1 + maxLength: 64 + minProperties: 0 + maxProperties: 16 + description: Exact string matches supplied as `metadata[key]=value`. All + supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 + characters and values up to 512 characters. Filtering is eventually + consistent; metadata changes may take time to appear. + style: deepObject + explode: true + - name: order + in: query + required: false + schema: + $ref: "#/components/schemas/ListOrderParam" + default: desc + description: Sort order by the `created_at` timestamp. Use `asc` for ascending + order or `desc` for descending order. Defaults to `desc`. + - name: limit + in: query + required: false + schema: + type: + - integer + - "null" + format: int64 + minimum: 0 + description: The maximum number of resources to return. Defaults to 20. Values + are clamped between 1 and 100. + - name: status + in: query + required: false + schema: + $ref: "#/components/schemas/VaultStatusFilterParam" + description: Filter by one status or a list, such as `status=active` or + `status[]=active&status[]=archived`. Both statuses are included by + default. + - name: after + in: query + required: false + schema: + type: string + minLength: 0 + maxLength: 1048576 + description: Return resources after this resource ID in the selected order. + responses: + "200": + description: A page of vault credentials. + content: + application/json: + schema: + $ref: "#/components/schemas/VaultCredentialListResource" + description: A page of credentials in a vault. + "400": + description: The request was invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "401": + description: Authentication or project context was missing. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required management permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "404": + description: The requested vault or credential was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "409": + description: The request conflicted with the current vault state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "500": + description: An internal error occurred. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "503": + description: The service is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + post: + operationId: createVaultCredential + summary: Create a vault credential + description: Creates a vault credential. Secret values are write-only and are + never returned. See + [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + tags: + - Vaults + parameters: + - name: vault_id + in: path + required: true + schema: + type: string + minLength: 0 + maxLength: 1048576 + description: The ID of the vault. + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateVaultCredentialParams" + responses: + "201": + description: The created vault credential without secret values. + content: + application/json: + schema: + $ref: "#/components/schemas/VaultCredentialResource" + "400": + description: The request was invalid. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "401": + description: Authentication or project context was missing. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "403": + description: The API key lacks the required management permission. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "404": + description: The requested vault or credential was not found. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "409": + description: The request conflicted with the current vault state. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "500": + description: An internal error occurred. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + "503": + description: The service is temporarily unavailable. + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse-2" + /vaults/{vault_id}/credentials/{credential_id}: + get: + operationId: retrieveVaultCredential + summary: Retrieve a vault credential + description: Retrieves vault credential metadata without returning secret + values. See + [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults). + tags: + - Vaults + parameters: + - name: vault_id + in: path + required: true + schema: + type: string + minLength: 0 + maxLength: 1048576 + description: The ID of the vault. + - name: credential_id + in: path + required: true + schema: + type: string + minLength: 0 + maxLength: 1048576 + description: The ID of the vault credential. + responses: + "200": + description: The requested vault credential without secret values. + content: + application/json: + schema: + $ref: "#/components/schemas/VaultCredentialResource" "400": description: The request was invalid. content: @@ -56230,11 +56423,11 @@ components: safety_identifier: anyOf: - type: string - maxLength: 64 + maxLength: 128 example: safety-identifier-1234 description: | A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. - The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers). + The IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers). - type: "null" prompt_cache_key: anyOf: @@ -76263,6 +76456,28 @@ components: - code_interpreter required: - type + ToolSearchOutputTool: + description: | + A tool definition returned by a tool search output. + discriminator: + propertyName: type + oneOf: + - $ref: "#/components/schemas/FunctionTool" + - $ref: "#/components/schemas/FileSearchTool" + - $ref: "#/components/schemas/ComputerTool" + - $ref: "#/components/schemas/ComputerUsePreviewTool" + - $ref: "#/components/schemas/WebSearchTool" + - $ref: "#/components/schemas/MCPTool" + - $ref: "#/components/schemas/CodeInterpreterTool" + - $ref: "#/components/schemas/ProgrammaticToolCallingParam" + - $ref: "#/components/schemas/ImageGenTool" + - $ref: "#/components/schemas/LocalShellToolParam" + - $ref: "#/components/schemas/FunctionShellToolParam" + - $ref: "#/components/schemas/CustomToolParam" + - $ref: "#/components/schemas/ToolSearchOutputNamespaceToolParam" + - $ref: "#/components/schemas/ToolSearchToolParam" + - $ref: "#/components/schemas/WebSearchPreviewTool" + - $ref: "#/components/schemas/ApplyPatchToolParam" ToolsArray: type: array description: > @@ -83654,6 +83869,100 @@ components: required: - type - arguments + ToolSearchOutputFunctionToolParam: + properties: + name: + type: string + maxLength: 128 + minLength: 1 + pattern: ^(?![\s\S]*[\r\n])[a-zA-Z0-9_.-]+$ + description: The name of the loaded function tool. + description: + anyOf: + - type: string + - type: "null" + parameters: + anyOf: + - $ref: "#/components/schemas/EmptyModelParam" + - type: "null" + strict: + anyOf: + - type: boolean + description: Whether to enforce strict parameter validation. If omitted, + Responses attempts to use strict validation when the schema is + compatible, and falls back to non-strict validation otherwise. + - type: "null" + type: + type: string + enum: + - function + default: function + x-stainless-const: true + async: + type: boolean + description: Whether the tool response can be returned asynchronously versus + immediately returned on next response creation. + output_schema: + anyOf: + - additionalProperties: {} + type: object + description: A JSON Schema describing the JSON value encoded in string outputs + for this function tool. This does not describe content-array + outputs. + x-oaiTypeLabel: map + - type: "null" + defer_loading: + type: boolean + description: Whether this function should be deferred and discovered via tool + search. + allowed_callers: + anyOf: + - items: + $ref: "#/components/schemas/CallableToolAllowedCaller" + type: array + minItems: 1 + description: The tool invocation context(s). + - type: "null" + type: object + required: + - name + - type + x-openai-structured-output: function + ToolSearchOutputNamespaceToolParam: + properties: + type: + type: string + enum: + - namespace + description: The type of the tool. Always `namespace`. + default: namespace + x-stainless-const: true + name: + type: string + minLength: 1 + description: The namespace name used in tool calls (for example, `crm`). + description: + type: string + description: A description of the namespace shown to the model. + tools: + items: + oneOf: + - $ref: "#/components/schemas/ToolSearchOutputFunctionToolParam" + - $ref: "#/components/schemas/CustomToolParam" + description: A function or custom tool loaded into a namespace by tool search. + discriminator: + propertyName: type + type: array + minItems: 1 + description: The function/custom tools loaded inside this namespace. + type: object + required: + - type + - name + - description + - tools + title: Namespace + description: Groups function/custom tools under a shared namespace. ToolSearchOutputItemParam: properties: id: @@ -83681,7 +83990,7 @@ components: description: Whether tool search was executed by the server or by the client. tools: items: - $ref: "#/components/schemas/Tool" + $ref: "#/components/schemas/ToolSearchOutputTool" type: array description: The loaded tool definitions returned by the tool search output. status: @@ -88739,6 +89048,521 @@ components: - has_more title: Threads description: A paginated list of ChatKit threads. + DecisionInputText: + type: object + properties: + type: + type: string + enum: + - input_text + default: input_text + x-stainless-const: true + text: + type: string + minLength: 0 + maxLength: 10485760 + required: + - type + - text + additionalProperties: false + ImageDetailParam: + type: string + enum: + - low + - high + - auto + - original + DecisionInputImage: + type: object + properties: + image_url: + type: string + minLength: 0 + maxLength: 1073741824 + pattern: "^data:" + description: A base64-encoded image in a data URL. + detail: + anyOf: + - $ref: "#/components/schemas/ImageDetailParam" + - type: "null" + description: The image detail level, using the selected model's image profile. + Defaults to auto. + default: auto + type: + type: string + enum: + - input_image + default: input_image + x-stainless-const: true + required: + - image_url + - type + additionalProperties: false + description: An inline image. External URLs and file IDs are not supported. + DecisionInputContentParts: + type: array + items: + oneOf: + - $ref: "#/components/schemas/DecisionInputText" + - $ref: "#/components/schemas/DecisionInputImage" + discriminator: + propertyName: type + mapping: + input_text: "#/components/schemas/DecisionInputText" + input_image: "#/components/schemas/DecisionInputImage" + x-oai-discriminator-values: + - input_text + - input_image + minItems: 0 + maxItems: 16384 + DecisionInputContent: + oneOf: + - type: string + minLength: 0 + maxLength: 10485760 + - $ref: "#/components/schemas/DecisionInputContentParts" + title: Parts + description: Text evidence or an ordered list of text and inline image parts. + DecisionInputMessage: + type: object + properties: + role: + type: string + enum: + - user + default: user + x-stainless-const: true + content: + $ref: "#/components/schemas/DecisionInputContent" + type: + type: string + enum: + - message + default: message + x-stainless-const: true + required: + - role + - content + additionalProperties: false + description: A user message containing text or inline images. + DecisionInput: + oneOf: + - type: string + minLength: 0 + maxLength: 10485760 + - type: array + items: + oneOf: + - $ref: "#/components/schemas/DecisionInputMessage" + discriminator: + propertyName: type + mapping: + message: "#/components/schemas/DecisionInputMessage" + x-oai-discriminator-values: + - message + x-oai-default-discriminator-value: message + minItems: 0 + maxItems: 131072 + description: Shared evidence, as a string or an array of user messages + containing text and inline images. Non-user roles, function calls, + function-call outputs, files, audio, and item references are not + supported. At most 128 image parts are allowed across all messages in + one request. + QuestionParamPredicate: + type: object + properties: + type: + type: string + enum: + - predicate + default: predicate + x-stainless-const: true + description: The type of the object. Always `predicate`. + name: + type: string + minLength: 0 + maxLength: 1048576 + instructions: + type: string + minLength: 0 + maxLength: 1048576 + required: + - type + - instructions + additionalProperties: false + ChoiceValueParam: + oneOf: + - type: string + minLength: 0 + maxLength: 1048576 + - type: boolean + description: "Choice values are typed: a string and a boolean with the same text + are distinct." + ChoiceOptionParam: + type: object + properties: + value: + $ref: "#/components/schemas/ChoiceValueParam" + description: + type: string + minLength: 0 + maxLength: 1048576 + required: + - value + additionalProperties: false + QuestionParamChoice: + type: object + properties: + type: + type: string + enum: + - choice + default: choice + x-stainless-const: true + description: The type of the object. Always `choice`. + name: + type: string + minLength: 0 + maxLength: 1048576 + instructions: + type: string + minLength: 0 + maxLength: 1048576 + choices: + type: array + items: + $ref: "#/components/schemas/ChoiceOptionParam" + minItems: 2 + maxItems: 255 + required: + - type + - instructions + - choices + additionalProperties: false + ScoreLevelParam: + type: object + properties: + label: + type: string + minLength: 0 + maxLength: 1048576 + description: + type: string + minLength: 0 + maxLength: 1048576 + required: + - label + additionalProperties: false + QuestionParamScore: + type: object + properties: + type: + type: string + enum: + - score + default: score + x-stainless-const: true + description: The type of the object. Always `score`. + name: + type: string + minLength: 0 + maxLength: 1048576 + instructions: + type: string + minLength: 0 + maxLength: 1048576 + levels: + type: array + items: + $ref: "#/components/schemas/ScoreLevelParam" + minItems: 2 + maxItems: 10 + required: + - type + - instructions + - levels + additionalProperties: false + QuestionParam: + oneOf: + - $ref: "#/components/schemas/QuestionParamPredicate" + - $ref: "#/components/schemas/QuestionParamChoice" + - $ref: "#/components/schemas/QuestionParamScore" + discriminator: + propertyName: type + mapping: + predicate: "#/components/schemas/QuestionParamPredicate" + choice: "#/components/schemas/QuestionParamChoice" + score: "#/components/schemas/QuestionParamScore" + x-oai-discriminator-values: + - predicate + - choice + - score + description: A question about the request's input, with an optional correlation name. + DecisionRequest: + type: object + properties: + model: + type: string + minLength: 0 + maxLength: 1048576 + input: + $ref: "#/components/schemas/DecisionInput" + questions: + type: array + items: + $ref: "#/components/schemas/QuestionParam" + minItems: 1 + maxItems: 200 + safety_identifier: + type: + - string + - "null" + minLength: 0 + maxLength: 128 + description: Opaque caller-provided end-user identifier, scoped by the verified + org. Match Responses' limit; this is never the authenticated user + identity. + required: + - model + - input + - questions + additionalProperties: false + AnswerResourcePredicate: + type: object + properties: + type: + type: string + enum: + - predicate + default: predicate + x-stainless-const: true + description: The type of the object. Always `predicate`. + name: + type: + - string + - "null" + minLength: 0 + probability: + type: number + required: + - type + - name + - probability + additionalProperties: false + ChoiceValueResource: + oneOf: + - type: string + minLength: 0 + - type: boolean + description: "Choice values are typed: a string and a boolean with the same text + are distinct." + ChoiceProbabilityResource: + type: object + properties: + value: + $ref: "#/components/schemas/ChoiceValueResource" + probability: + type: number + required: + - value + - probability + additionalProperties: false + AnswerResourceChoice: + type: object + properties: + type: + type: string + enum: + - choice + default: choice + x-stainless-const: true + description: The type of the object. Always `choice`. + name: + type: + - string + - "null" + minLength: 0 + choice: + $ref: "#/components/schemas/ChoiceValueResource" + probabilities: + type: array + items: + $ref: "#/components/schemas/ChoiceProbabilityResource" + minItems: 0 + maxItems: 2000 + confidence: + type: number + required: + - type + - name + - choice + - probabilities + - confidence + additionalProperties: false + ScoreProbabilityResource: + type: object + properties: + value: + type: integer + format: int64 + label: + type: string + minLength: 0 + probability: + type: number + required: + - value + - label + - probability + additionalProperties: false + AnswerResourceScore: + type: object + properties: + type: + type: string + enum: + - score + default: score + x-stainless-const: true + description: The type of the object. Always `score`. + name: + type: + - string + - "null" + minLength: 0 + score: + type: number + probabilities: + type: array + items: + $ref: "#/components/schemas/ScoreProbabilityResource" + minItems: 0 + maxItems: 2000 + confidence: + type: number + required: + - type + - name + - score + - probabilities + - confidence + additionalProperties: false + AnswerResourceRefusal: + type: object + properties: + type: + type: string + enum: + - refusal + default: refusal + x-stainless-const: true + description: The type of the object. Always `refusal`. + name: + type: + - string + - "null" + minLength: 0 + required: + - type + - name + additionalProperties: false + description: The host may decline one question without disclosing its refusal score. + AnswerResource: + oneOf: + - $ref: "#/components/schemas/AnswerResourcePredicate" + - $ref: "#/components/schemas/AnswerResourceChoice" + - $ref: "#/components/schemas/AnswerResourceScore" + - $ref: "#/components/schemas/AnswerResourceRefusal" + discriminator: + propertyName: type + mapping: + predicate: "#/components/schemas/AnswerResourcePredicate" + choice: "#/components/schemas/AnswerResourceChoice" + score: "#/components/schemas/AnswerResourceScore" + refusal: "#/components/schemas/AnswerResourceRefusal" + x-oai-discriminator-values: + - predicate + - choice + - score + - refusal + description: A completed question always includes its name, including null when + unnamed. + InputTokensDetailsResource: + type: object + properties: + cached_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + cache_write_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + required: + - cached_tokens + - cache_write_tokens + additionalProperties: false + OutputTokensDetailsResource: + type: object + properties: + reasoning_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + required: + - reasoning_tokens + additionalProperties: false + ResponseUsageResource: + type: object + properties: + input_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + input_tokens_details: + $ref: "#/components/schemas/InputTokensDetailsResource" + output_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + output_tokens_details: + $ref: "#/components/schemas/OutputTokensDetailsResource" + total_tokens: + type: integer + format: int64 + minimum: -2147483648 + maximum: 2147483647 + required: + - input_tokens + - input_tokens_details + - output_tokens + - output_tokens_details + - total_tokens + additionalProperties: false + DecisionResponse: + type: object + properties: + model: + type: string + minLength: 0 + answers: + type: array + items: + $ref: "#/components/schemas/AnswerResource" + minItems: 0 + maxItems: 2000 + usage: + $ref: "#/components/schemas/ResponseUsageResource" + required: + - model + - answers + - usage + additionalProperties: false EnvironmentTypeResource: type: string enum: @@ -90725,7 +91549,7 @@ components: - message additionalProperties: false description: A customer-safe error describing why a session request failed. - InputTokensDetailsResource: + InputTokensDetailsResource-2: type: object properties: cached_tokens: @@ -90736,7 +91560,7 @@ components: - cached_tokens additionalProperties: false description: A breakdown of input token usage for a session or turn. - OutputTokensDetailsResource: + OutputTokensDetailsResource-2: type: object properties: reasoning_tokens: @@ -90755,14 +91579,14 @@ components: format: int64 description: The number of input tokens used by the agent. input_tokens_details: - $ref: "#/components/schemas/InputTokensDetailsResource" + $ref: "#/components/schemas/InputTokensDetailsResource-2" description: A breakdown of the agent's input token usage. output_tokens: type: integer format: int64 description: The number of output tokens generated by the agent. output_tokens_details: - $ref: "#/components/schemas/OutputTokensDetailsResource" + $ref: "#/components/schemas/OutputTokensDetailsResource-2" description: A breakdown of the agent's output token usage. total_tokens: type: integer @@ -92113,7 +92937,8 @@ components: $ref: "#/components/schemas/PersistedAgentToolConfigParam" minItems: 0 maxItems: 2000 - description: Tools available to the agent. Defaults to an empty list. + description: Tools available to the agent. Defaults to an empty list. The tool + list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. multi_agent: anyOf: - $ref: "#/components/schemas/MultiAgentConfigCurrentParam" @@ -92195,7 +93020,9 @@ components: $ref: "#/components/schemas/PersistedAgentToolConfigParam" minItems: 0 maxItems: 2000 - description: Tools available to the agent. + description: Replaces the tool list. Omit to leave it unchanged, or pass null to + clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of + compact UTF-8 JSON. additionalProperties: false description: Fields to replace on an existing reusable agent. DeletedAgentResource: @@ -94218,7 +95045,8 @@ components: minItems: 0 maxItems: 16384 description: Tools available to the agent. Omit to inherit, or pass null to - clear them. + clear them. The resolved tool list must fit within 3 MiB (3,145,728 + bytes) of compact UTF-8 JSON. additionalProperties: false description: Agent configuration for a session. Omitted fields inherit from `agent_id` when supplied. Supplied objects and arrays replace the whole @@ -96767,6 +97595,35 @@ components: or team identifier. additionalProperties: false description: Parameters for creating a vault to store credentials used by agent tools. + UpdateVaultParams: + type: object + properties: + metadata: + type: object + additionalProperties: + type: string + minLength: 0 + maxLength: 512 + propertyNames: + type: string + minLength: 1 + maxLength: 64 + minProperties: 0 + maxProperties: 16 + description: Replaces all metadata. Omit to leave unchanged, or pass {} to clear + it. Up to 16 string key-value pairs, with keys up to 64 and values + up to 512 characters. + name: + type: + - string + - "null" + minLength: 1 + maxLength: 1048576 + description: A replacement name. Omit to leave unchanged, or pass null to clear + it. The name is trimmed before storage. It must contain 1 to 256 + UTF-8 bytes after trimming. + additionalProperties: false + description: Fields to replace on an active vault. DeletedVaultResource: type: object properties: @@ -103965,7 +104822,7 @@ components: description: Whether tool search was executed by the server or by the client. tools: items: - $ref: "#/components/schemas/BetaTool" + $ref: "#/components/schemas/BetaToolSearchOutputTool" type: array description: The loaded tool definitions returned by the tool search output. status: @@ -103983,6 +104840,122 @@ components: - in_progress - completed - incomplete + BetaToolSearchOutputTool: + description: | + A tool definition returned by a tool search output. + discriminator: + propertyName: type + oneOf: + - $ref: "#/components/schemas/BetaFunctionTool" + - $ref: "#/components/schemas/BetaFileSearchTool" + - $ref: "#/components/schemas/BetaComputerTool" + - $ref: "#/components/schemas/BetaComputerUsePreviewTool" + - $ref: "#/components/schemas/BetaWebSearchTool" + - $ref: "#/components/schemas/BetaMCPTool" + - $ref: "#/components/schemas/BetaCodeInterpreterTool" + - $ref: "#/components/schemas/BetaProgrammaticToolCallingParam" + - $ref: "#/components/schemas/BetaImageGenTool" + - $ref: "#/components/schemas/BetaLocalShellToolParam" + - $ref: "#/components/schemas/BetaFunctionShellToolParam" + - $ref: "#/components/schemas/BetaCustomToolParam" + - $ref: "#/components/schemas/BetaToolSearchOutputNamespaceToolParam" + - $ref: "#/components/schemas/BetaToolSearchToolParam" + - $ref: "#/components/schemas/BetaWebSearchPreviewTool" + - $ref: "#/components/schemas/BetaApplyPatchToolParam" + BetaToolSearchOutputNamespaceToolParam: + properties: + type: + type: string + enum: + - namespace + description: The type of the tool. Always `namespace`. + default: namespace + x-stainless-const: true + name: + type: string + minLength: 1 + description: The namespace name used in tool calls (for example, `crm`). + description: + type: string + description: A description of the namespace shown to the model. + tools: + items: + oneOf: + - $ref: "#/components/schemas/BetaToolSearchOutputFunctionToolParam" + - $ref: "#/components/schemas/BetaCustomToolParam" + description: A function or custom tool loaded into a namespace by tool search. + discriminator: + propertyName: type + type: array + minItems: 1 + description: The function/custom tools loaded inside this namespace. + type: object + required: + - type + - name + - description + - tools + title: Namespace + description: Groups function/custom tools under a shared namespace. + BetaToolSearchOutputFunctionToolParam: + properties: + name: + type: string + maxLength: 128 + minLength: 1 + pattern: ^(?![\s\S]*[\r\n])[a-zA-Z0-9_.-]+$ + description: The name of the loaded function tool. + description: + anyOf: + - type: string + - type: "null" + parameters: + anyOf: + - $ref: "#/components/schemas/BetaEmptyModelParam" + - type: "null" + strict: + anyOf: + - type: boolean + description: Whether to enforce strict parameter validation. If omitted, + Responses attempts to use strict validation when the schema is + compatible, and falls back to non-strict validation otherwise. + - type: "null" + type: + type: string + enum: + - function + default: function + x-stainless-const: true + async: + type: boolean + description: Whether the tool response can be returned asynchronously versus + immediately returned on next response creation. + output_schema: + anyOf: + - additionalProperties: {} + type: object + description: A JSON Schema describing the JSON value encoded in string outputs + for this function tool. This does not describe content-array + outputs. + x-oaiTypeLabel: map + - type: "null" + defer_loading: + type: boolean + description: Whether this function should be deferred and discovered via tool + search. + allowed_callers: + anyOf: + - items: + $ref: "#/components/schemas/BetaCallableToolAllowedCaller" + type: array + minItems: 1 + description: The tool invocation context(s). + - type: "null" + type: object + required: + - name + - type + x-openai-structured-output: function BetaToolSearchCallItemParam: properties: agent: @@ -108675,11 +109648,11 @@ components: safety_identifier: anyOf: - type: string - maxLength: 64 + maxLength: 128 example: safety-identifier-1234 description: | A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. - The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers). + The IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers). - type: "null" prompt_cache_key: anyOf: