From ba5dbc20f239f09edc10320963d09919361855c8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Apr 2026 18:41:47 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/tryAGI.OpenAI.AllOf.2.g.cs | 8 +- ...GI.OpenAI.AssistantsClient.CancelARun.g.cs | 4 +- ...OpenAI.AssistantsClient.CreateMessage.g.cs | 6 +- ...AGI.OpenAI.AssistantsClient.CreateRun.g.cs | 6 +- ....OpenAI.AssistantsClient.CreateThread.g.cs | 6 +- ...I.AssistantsClient.CreateThreadAndRun.g.cs | 6 +- ...OpenAI.AssistantsClient.DeleteMessage.g.cs | 4 +- ....OpenAI.AssistantsClient.DeleteThread.g.cs | 4 +- ....OpenAI.AssistantsClient.ListMessages.g.cs | 4 +- ....OpenAI.AssistantsClient.ListRunSteps.g.cs | 4 +- ...yAGI.OpenAI.AssistantsClient.ListRuns.g.cs | 4 +- ...OpenAI.AssistantsClient.ModifyMessage.g.cs | 6 +- ...AGI.OpenAI.AssistantsClient.ModifyRun.g.cs | 6 +- ....OpenAI.AssistantsClient.ModifyThread.g.cs | 6 +- ...enAI.AssistantsClient.RetrieveMessage.g.cs | 4 +- ...I.OpenAI.AssistantsClient.RetrieveRun.g.cs | 4 +- ...enAI.AssistantsClient.RetrieveRunStep.g.cs | 4 +- ...penAI.AssistantsClient.RetrieveThread.g.cs | 4 +- ...sistantsClient.SubmitToolOutputsToRun.g.cs | 6 +- .../tryAGI.OpenAI.AssistantsClient.g.cs | 2 +- ...ryAGI.OpenAI.AudioClient.CreateSpeech.g.cs | 4 +- ...penAI.AudioClient.CreateTranscription.g.cs | 4 +- ...dioClient.CreateTranscriptionAsStream.g.cs | 2 +- ....OpenAI.AudioClient.CreateTranslation.g.cs | 4 +- ...tryAGI.OpenAI.AudioClient.CreateVoice.g.cs | 4 +- ...OpenAI.AudioClient.CreateVoiceConsent.g.cs | 4 +- ...OpenAI.AudioClient.DeleteVoiceConsent.g.cs | 4 +- ....OpenAI.AudioClient.ListVoiceConsents.g.cs | 4 +- ...enAI.AudioClient.RetrieveVoiceConsent.g.cs | 4 +- ...OpenAI.AudioClient.UpdateVoiceConsent.g.cs | 6 +- .../Generated/tryAGI.OpenAI.AudioClient.g.cs | 2 +- ....OpenAI.AuditLogsClient.ListAuditLogs.g.cs | 4 +- .../tryAGI.OpenAI.AuditLogsClient.g.cs | 2 +- ...tryAGI.OpenAI.BatchClient.CancelBatch.g.cs | 4 +- ...tryAGI.OpenAI.BatchClient.CreateBatch.g.cs | 6 +- ...tryAGI.OpenAI.BatchClient.ListBatches.g.cs | 4 +- ...yAGI.OpenAI.BatchClient.RetrieveBatch.g.cs | 4 +- .../Generated/tryAGI.OpenAI.BatchClient.g.cs | 2 +- ...t.ActivateCertificatesForOrganization.g.cs | 6 +- ...Client.ActivateCertificatesForProject.g.cs | 6 +- ...DeactivateCertificatesForOrganization.g.cs | 6 +- ...ient.DeactivateCertificatesForProject.g.cs | 6 +- ....CertificatesClient.DeleteCertificate.g.cs | 4 +- ...nAI.CertificatesClient.GetCertificate.g.cs | 4 +- ...esClient.ListOrganizationCertificates.g.cs | 4 +- ...ficatesClient.ListProjectCertificates.g.cs | 4 +- ....CertificatesClient.ModifyCertificate.g.cs | 6 +- ....CertificatesClient.UploadCertificate.g.cs | 6 +- .../tryAGI.OpenAI.CertificatesClient.g.cs | 2 +- ...penAI.ChatClient.CreateChatCompletion.g.cs | 6 +- ...atClient.CreateChatCompletionAsStream.g.cs | 4 +- ...penAI.ChatClient.DeleteChatCompletion.g.cs | 4 +- ...I.OpenAI.ChatClient.GetChatCompletion.g.cs | 4 +- ...AGI.OpenAI.ChatClient.GetChatMessages.g.cs | 4 +- ...OpenAI.ChatClient.ListChatCompletions.g.cs | 4 +- ...penAI.ChatClient.UpdateChatCompletion.g.cs | 6 +- .../Generated/tryAGI.OpenAI.ChatClient.g.cs | 2 +- ...AI.CompletionsClient.CreateCompletion.g.cs | 6 +- .../tryAGI.OpenAI.CompletionsClient.g.cs | 2 +- ...nversationsClient.CreateAConversation.g.cs | 6 +- ...penAI.ConversationsClient.CreateItems.g.cs | 6 +- ...nversationsClient.DeleteAConversation.g.cs | 4 +- ...enAI.ConversationsClient.DeleteAnItem.g.cs | 4 +- ....OpenAI.ConversationsClient.ListItems.g.cs | 4 +- ...ersationsClient.RetrieveAConversation.g.cs | 4 +- ...AI.ConversationsClient.RetrieveAnItem.g.cs | 4 +- ...nversationsClient.UpdateAConversation.g.cs | 6 +- .../tryAGI.OpenAI.ConversationsClient.g.cs | 2 +- ...nAI.EmbeddingsClient.CreateEmbeddings.g.cs | 6 +- .../tryAGI.OpenAI.EmbeddingsClient.g.cs | 2 +- ...yAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs | 4 +- .../tryAGI.OpenAI.EvalsClient.CreateEval.g.cs | 6 +- ...yAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs | 10 +- ...ryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs | 8 +- ...yAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs | 8 +- .../tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs | 4 +- ...ryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs | 4 +- ...valsClient.GetAnOutputItemOfAnEvalRun.g.cs | 4 +- ...nAI.EvalsClient.GetEvalRunOutputItems.g.cs | 4 +- ...tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs | 4 +- .../tryAGI.OpenAI.EvalsClient.ListEvals.g.cs | 4 +- ...ryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs | 6 +- .../Generated/tryAGI.OpenAI.EvalsClient.g.cs | 2 +- .../tryAGI.OpenAI.FilesClient.DeleteFile.g.cs | 4 +- .../tryAGI.OpenAI.FilesClient.ListFiles.g.cs | 4 +- ...ryAGI.OpenAI.FilesClient.RetrieveFile.g.cs | 4 +- .../tryAGI.OpenAI.FilesClient.UploadFile.g.cs | 4 +- .../Generated/tryAGI.OpenAI.FilesClient.g.cs | 2 +- ...nAI.FineTuningClient.CancelFineTuning.g.cs | 4 +- ...ingClient.CreateCheckpointPermissions.g.cs | 6 +- ....FineTuningClient.CreateFineTuningJob.g.cs | 6 +- ...ningClient.DeleteCheckpointPermission.g.cs | 4 +- ...uningClient.ListCheckpointPermissions.g.cs | 4 +- ...uningClient.ListFineTuningCheckpoints.g.cs | 4 +- ...FineTuningClient.ListFineTuningEvents.g.cs | 4 +- ...I.FineTuningClient.ListFineTuningJobs.g.cs | 4 +- ...enAI.FineTuningClient.PauseFineTuning.g.cs | 4 +- ...nAI.FineTuningClient.ResumeFineTuning.g.cs | 4 +- ...ineTuningClient.RetrieveFineTuningJob.g.cs | 4 +- ...AGI.OpenAI.FineTuningClient.RunGrader.g.cs | 6 +- ...penAI.FineTuningClient.ValidateGrader.g.cs | 6 +- .../tryAGI.OpenAI.FineTuningClient.g.cs | 2 +- ...sClient.AssignOrganizationRoleToGroup.g.cs | 6 +- ....ListGroupOrganizationRoleAssignments.g.cs | 4 +- ...ent.UnassignOrganizationRoleFromGroup.g.cs | 4 +- ...roupOrganizationRoleAssignmentsClient.g.cs | 2 +- ....OpenAI.GroupUsersClient.AddGroupUser.g.cs | 6 +- ...penAI.GroupUsersClient.ListGroupUsers.g.cs | 4 +- ...enAI.GroupUsersClient.RemoveGroupUser.g.cs | 4 +- .../tryAGI.OpenAI.GroupUsersClient.g.cs | 2 +- ...ryAGI.OpenAI.GroupsClient.CreateGroup.g.cs | 6 +- ...ryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs | 4 +- ...tryAGI.OpenAI.GroupsClient.ListGroups.g.cs | 4 +- ...ryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs | 6 +- .../Generated/tryAGI.OpenAI.GroupsClient.g.cs | 2 +- .../tryAGI.OpenAI.IAssistantsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IAudioClient.g.cs | 2 +- .../tryAGI.OpenAI.IAuditLogsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IBatchClient.g.cs | 2 +- .../tryAGI.OpenAI.ICertificatesClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IChatClient.g.cs | 2 +- .../tryAGI.OpenAI.ICompletionsClient.g.cs | 2 +- .../tryAGI.OpenAI.IConversationsClient.g.cs | 2 +- .../tryAGI.OpenAI.IEmbeddingsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IEvalsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IFilesClient.g.cs | 2 +- .../tryAGI.OpenAI.IFineTuningClient.g.cs | 2 +- ...roupOrganizationRoleAssignmentsClient.g.cs | 2 +- .../tryAGI.OpenAI.IGroupUsersClient.g.cs | 2 +- .../tryAGI.OpenAI.IGroupsClient.g.cs | 2 +- .../tryAGI.OpenAI.IImagesClient.g.cs | 2 +- .../tryAGI.OpenAI.IInvitesClient.g.cs | 2 +- .../tryAGI.OpenAI.IModelsClient.g.cs | 2 +- .../tryAGI.OpenAI.IModerationsClient.g.cs | 2 +- .../tryAGI.OpenAI.IOpenAiClient.g.cs | 2 +- ...AI.IProjectGroupRoleAssignmentsClient.g.cs | 2 +- .../tryAGI.OpenAI.IProjectGroupsClient.g.cs | 2 +- ...nAI.IProjectUserRoleAssignmentsClient.g.cs | 2 +- .../tryAGI.OpenAI.IProjectsClient.g.cs | 2 +- .../tryAGI.OpenAI.IRealtimeClient.g.cs | 2 +- .../tryAGI.OpenAI.IResponsesClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IRolesClient.g.cs | 2 +- .../tryAGI.OpenAI.ISkillsClient.g.cs | 2 +- .../tryAGI.OpenAI.IUploadsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IUsageClient.g.cs | 2 +- ...UserOrganizationRoleAssignmentsClient.g.cs | 2 +- .../Generated/tryAGI.OpenAI.IUsersClient.g.cs | 2 +- .../tryAGI.OpenAI.IVectorStoresClient.g.cs | 2 +- .../tryAGI.OpenAI.IVideosClient.g.cs | 2 +- ...ryAGI.OpenAI.ImagesClient.CreateImage.g.cs | 6 +- ...enAI.ImagesClient.CreateImageAsStream.g.cs | 4 +- ...I.OpenAI.ImagesClient.CreateImageEdit.g.cs | 4 +- ....ImagesClient.CreateImageEditAsStream.g.cs | 2 +- ...nAI.ImagesClient.CreateImageVariation.g.cs | 4 +- .../Generated/tryAGI.OpenAI.ImagesClient.g.cs | 2 +- ...AGI.OpenAI.InvitesClient.CreateInvite.g.cs | 6 +- ...AGI.OpenAI.InvitesClient.DeleteInvite.g.cs | 4 +- ...yAGI.OpenAI.InvitesClient.ListInvites.g.cs | 4 +- ...I.OpenAI.InvitesClient.RetrieveInvite.g.cs | 4 +- .../tryAGI.OpenAI.InvitesClient.g.cs | 2 +- .../tryAGI.OpenAI.JsonConverters.AllOf2.g.cs | 52 +- ...yAGI.OpenAI.JsonConverters.Annotation.g.cs | 54 +- ...penAI.JsonConverters.AnnotationsItem3.g.cs | 30 +- .../tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs | 52 +- .../tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs | 74 +- ...onConverters.ApplyPatchOperationParam.g.cs | 42 +- ...I.JsonConverters.AssistantStreamEvent.g.cs | 78 +- ...ers.AssistantsApiResponseFormatOption.g.cs | 54 +- ...verters.AssistantsApiToolChoiceOption.g.cs | 30 +- ...rs.ChatCompletionMessageToolCallsItem.g.cs | 30 +- ...ionRequestAssistantMessageContentPart.g.cs | 30 +- ...nverters.ChatCompletionRequestMessage.g.cs | 78 +- ...letionRequestSystemMessageContentPart.g.cs | 18 +- ...mpletionRequestToolMessageContentPart.g.cs | 18 +- ...mpletionRequestUserMessageContentPart.g.cs | 54 +- ...erters.ChatCompletionToolChoiceOption.g.cs | 54 +- ...nverters.ChunkingStrategyRequestParam.g.cs | 30 +- ....OpenAI.JsonConverters.ComputerAction.g.cs | 114 +- ...erters.ComputerToolCallOutputResource.g.cs | 30 +- ...tryAGI.OpenAI.JsonConverters.Content5.g.cs | 50 +- ...GI.OpenAI.JsonConverters.ContentItem3.g.cs | 114 +- ...GI.OpenAI.JsonConverters.ContentItem4.g.cs | 30 +- ...penAI.JsonConverters.ConversationItem.g.cs | 306 +- ...enAI.JsonConverters.ConversationParam.g.cs | 30 +- ...onverters.CreateChatCompletionRequest.g.cs | 30 +- ....OpenAI.JsonConverters.CreateEvalItem.g.cs | 30 +- ...verters.CreateModelResponseProperties.g.cs | 30 +- ....OpenAI.JsonConverters.CreateResponse.g.cs | 42 +- ...rters.CreateSpeechResponseStreamEvent.g.cs | 30 +- ...ranscriptionResponseDiarizedJsonUsage.g.cs | 30 +- ...reateTranscriptionResponseStreamEvent.g.cs | 42 +- ...nverters.CustomToolCallOutputResource.g.cs | 30 +- ...JsonConverters.CustomToolCallResource.g.cs | 30 +- ...AI.JsonConverters.DeletedConversation.g.cs | 18 +- ...AI.JsonConverters.EnvironmentVariant1.g.cs | 42 +- ...I.JsonConverters.EnvironmentVariant12.g.cs | 30 +- ...I.JsonConverters.EnvironmentVariant13.g.cs | 30 +- ...I.JsonConverters.EvalGraderLabelModel.g.cs | 18 +- ...penAI.JsonConverters.EvalGraderPython.g.cs | 30 +- ...I.JsonConverters.EvalGraderScoreModel.g.cs | 30 +- ....JsonConverters.EvalGraderStringCheck.g.cs | 18 +- ...onConverters.EvalGraderTextSimilarity.g.cs | 30 +- ...OpenAI.JsonConverters.EvalItemContent.g.cs | 50 +- ...AI.JsonConverters.EvalItemContentItem.g.cs | 66 +- ...tryAGI.OpenAI.JsonConverters.Filters2.g.cs | 30 +- ...AGI.OpenAI.JsonConverters.FiltersItem.g.cs | 30 +- ...ChatCompletionRequestAssistantMessage.g.cs | 30 +- .../tryAGI.OpenAI.JsonConverters.Format2.g.cs | 30 +- ...rters.FunctionAndCustomToolCallOutput.g.cs | 42 +- ...s.FunctionShellCallOutputOutcomeParam.g.cs | 30 +- ...erters.FunctionToolCallOutputResource.g.cs | 30 +- ...onConverters.FunctionToolCallResource.g.cs | 30 +- ...I.JsonConverters.ImageEditStreamEvent.g.cs | 30 +- ...AI.JsonConverters.ImageGenStreamEvent.g.cs | 30 +- ...GI.OpenAI.JsonConverters.InputContent.g.cs | 42 +- ...ryAGI.OpenAI.JsonConverters.InputItem.g.cs | 42 +- ...I.JsonConverters.InputMessageResource.g.cs | 30 +- ...yAGI.OpenAI.JsonConverters.InputParam.g.cs | 50 +- .../tryAGI.OpenAI.JsonConverters.Item.g.cs | 318 +- ...ryAGI.OpenAI.JsonConverters.ItemField.g.cs | 306 +- ...GI.OpenAI.JsonConverters.ItemResource.g.cs | 318 +- ...nAI.JsonConverters.MessageStreamEvent.g.cs | 66 +- ...tryAGI.OpenAI.JsonConverters.ModelIds.g.cs | 50 +- ...nAI.JsonConverters.ModelIdsCompaction.g.cs | 72 +- ...enAI.JsonConverters.ModelIdsResponses.g.cs | 50 +- ....OpenAI.JsonConverters.ModelIdsShared.g.cs | 50 +- ...I.OpenAI.JsonConverters.NetworkPolicy.g.cs | 30 +- ....OpenAI.JsonConverters.NetworkPolicy2.g.cs | 30 +- ....OpenAI.JsonConverters.NetworkPolicy3.g.cs | 30 +- .../tryAGI.OpenAI.JsonConverters.OneOf2.g.cs | 52 +- .../tryAGI.OpenAI.JsonConverters.OneOf3.g.cs | 74 +- .../tryAGI.OpenAI.JsonConverters.OneOf4.g.cs | 96 +- .../tryAGI.OpenAI.JsonConverters.OneOf5.g.cs | 118 +- .../tryAGI.OpenAI.JsonConverters.OneOf9.g.cs | 206 +- ...ryAGI.OpenAI.JsonConverters.Operation.g.cs | 42 +- .../tryAGI.OpenAI.JsonConverters.Outcome.g.cs | 30 +- ...I.OpenAI.JsonConverters.OutputContent.g.cs | 42 +- ...yAGI.OpenAI.JsonConverters.OutputItem.g.cs | 306 +- ...I.JsonConverters.OutputMessageContent.g.cs | 30 +- ...nAI.JsonConverters.OutputVariant2Item.g.cs | 42 +- ...AI.JsonConverters.OutputsVariant1Item.g.cs | 30 +- ...I.JsonConverters.RealtimeAudioFormats.g.cs | 42 +- ...AI.JsonConverters.RealtimeClientEvent.g.cs | 138 +- ...onConverters.RealtimeConversationItem.g.cs | 114 +- ...AI.JsonConverters.RealtimeServerEvent.g.cs | 558 +- ...nAI.JsonConverters.RealtimeTruncation.g.cs | 30 +- ...meTurnDetectionRealtimeTurnDetection1.g.cs | 30 +- ...tryAGI.OpenAI.JsonConverters.Response.g.cs | 42 +- ....OpenAI.JsonConverters.ResponseFormat.g.cs | 42 +- ...AI.JsonConverters.ResponseStreamEvent.g.cs | 642 +- ...I.JsonConverters.ResponsesClientEvent.g.cs | 28 +- ...rs.ResponsesClientEventResponseCreate.g.cs | 30 +- ...I.JsonConverters.ResponsesServerEvent.g.cs | 28 +- ...nAI.JsonConverters.RunStepStreamEvent.g.cs | 90 +- ....OpenAI.JsonConverters.RunStreamEvent.g.cs | 126 +- ...tryAGI.OpenAI.JsonConverters.Session2.g.cs | 30 +- ...yAGI.OpenAI.JsonConverters.SkillsItem.g.cs | 30 +- ...AGI.OpenAI.JsonConverters.SkillsItem2.g.cs | 30 +- .../tryAGI.OpenAI.JsonConverters.Status.g.cs | 42 +- ...enAI.JsonConverters.StopConfiguration.g.cs | 50 +- ...rters.TextResponseFormatConfiguration.g.cs | 42 +- ...yAGI.OpenAI.JsonConverters.ThreadItem.g.cs | 78 +- ...enAI.JsonConverters.ThreadStreamEvent.g.cs | 18 +- .../tryAGI.OpenAI.JsonConverters.Tool.g.cs | 186 +- ...OpenAI.JsonConverters.ToolChoiceParam.g.cs | 102 +- ...AGI.OpenAI.JsonConverters.ToolsItem13.g.cs | 30 +- ...verters.TranscriptionChunkingStrategy.g.cs | 30 +- ...yAGI.OpenAI.JsonConverters.VideoModel.g.cs | 50 +- ....JsonConverters.VoiceIdsOrCustomVoice.g.cs | 30 +- ....OpenAI.JsonConverters.VoiceIdsShared.g.cs | 50 +- ...sonConverters.WebSearchToolCallAction.g.cs | 42 +- .../tryAGI.OpenAI.JsonSerializerContext.g.cs | 7693 ++++++++++ ...AGI.OpenAI.JsonSerializerContextTypes.g.cs | 11830 ++++++++++++++++ ...AI.ModelsClient.DeleteAFineTunedModel.g.cs | 4 +- ...tryAGI.OpenAI.ModelsClient.ListModels.g.cs | 4 +- ...AGI.OpenAI.ModelsClient.RetrieveModel.g.cs | 4 +- .../Generated/tryAGI.OpenAI.ModelsClient.g.cs | 2 +- ...AI.ModerationsClient.CreateModeration.g.cs | 6 +- .../tryAGI.OpenAI.ModerationsClient.g.cs | 2 +- ...OpenAI.OpenAiClient.CancelChatSession.g.cs | 4 +- ....OpenAI.OpenAiClient.CompactAResponse.g.cs | 6 +- ...OpenAI.OpenAiClient.CreateAdminApiKey.g.cs | 6 +- ...nAI.OpenAiClient.CreateChatKitSession.g.cs | 6 +- ...I.OpenAI.OpenAiClient.CreateContainer.g.cs | 6 +- ...enAI.OpenAiClient.CreateContainerFile.g.cs | 6 +- ...OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs | 4 +- ...enAI.OpenAiClient.DeleteChatKitThread.g.cs | 4 +- ...enAI.OpenAiClient.GetInputTokenCounts.g.cs | 6 +- ....ListAllOrganizationAndProjectApiKeys.g.cs | 4 +- ...I.OpenAiClient.ListChatKitThreadItems.g.cs | 4 +- ...penAI.OpenAiClient.ListChatKitThreads.g.cs | 4 +- ...penAI.OpenAiClient.ListContainerFiles.g.cs | 4 +- ...GI.OpenAI.OpenAiClient.ListContainers.g.cs | 4 +- ...enAI.OpenAiClient.RetrieveAdminApiKey.g.cs | 4 +- ...AI.OpenAiClient.RetrieveChatKitThread.g.cs | 4 +- ...OpenAI.OpenAiClient.RetrieveContainer.g.cs | 4 +- ...AI.OpenAiClient.RetrieveContainerFile.g.cs | 4 +- .../Generated/tryAGI.OpenAI.OpenAiClient.g.cs | 2425 +--- .../Generated/tryAGI.OpenAI.Polyfills.g.cs | 8 + ...nmentsClient.AssignProjectRoleToGroup.g.cs | 6 +- ...lient.ListProjectGroupRoleAssignments.g.cs | 4 +- ...tsClient.UnassignProjectRoleFromGroup.g.cs | 4 +- ...nAI.ProjectGroupRoleAssignmentsClient.g.cs | 2 +- ...I.ProjectGroupsClient.AddProjectGroup.g.cs | 6 +- ...ProjectGroupsClient.ListProjectGroups.g.cs | 4 +- ...rojectGroupsClient.RemoveProjectGroup.g.cs | 4 +- .../tryAGI.OpenAI.ProjectGroupsClient.g.cs | 2 +- ...gnmentsClient.AssignProjectRoleToUser.g.cs | 6 +- ...Client.ListProjectUserRoleAssignments.g.cs | 4 +- ...ntsClient.UnassignProjectRoleFromUser.g.cs | 4 +- ...enAI.ProjectUserRoleAssignmentsClient.g.cs | 2 +- ....OpenAI.ProjectsClient.ArchiveProject.g.cs | 4 +- ...I.OpenAI.ProjectsClient.CreateProject.g.cs | 6 +- ...ctsClient.CreateProjectServiceAccount.g.cs | 10 +- ...enAI.ProjectsClient.CreateProjectUser.g.cs | 10 +- ...AI.ProjectsClient.DeleteProjectApiKey.g.cs | 8 +- ...ctsClient.DeleteProjectServiceAccount.g.cs | 4 +- ...enAI.ProjectsClient.DeleteProjectUser.g.cs | 8 +- ...nAI.ProjectsClient.ListProjectApiKeys.g.cs | 4 +- ....ProjectsClient.ListProjectRateLimits.g.cs | 4 +- ...ectsClient.ListProjectServiceAccounts.g.cs | 8 +- ...penAI.ProjectsClient.ListProjectUsers.g.cs | 8 +- ...GI.OpenAI.ProjectsClient.ListProjects.g.cs | 4 +- ...I.OpenAI.ProjectsClient.ModifyProject.g.cs | 10 +- ...ProjectsClient.ModifyProjectRateLimit.g.cs | 10 +- ...enAI.ProjectsClient.ModifyProjectUser.g.cs | 10 +- ...OpenAI.ProjectsClient.RetrieveProject.g.cs | 4 +- ....ProjectsClient.RetrieveProjectApiKey.g.cs | 4 +- ...sClient.RetrieveProjectServiceAccount.g.cs | 4 +- ...AI.ProjectsClient.RetrieveProjectUser.g.cs | 4 +- .../tryAGI.OpenAI.ProjectsClient.g.cs | 2 +- .../tryAGI.OpenAI.Realtime.Polyfills.g.cs | 8 + ...yAGI.OpenAI.RealtimeClient.AcceptCall.g.cs | 2 +- ...nAI.RealtimeClient.CreateClientSecret.g.cs | 6 +- ...I.OpenAI.RealtimeClient.CreateSession.g.cs | 6 +- ...timeClient.CreateTranscriptionSession.g.cs | 6 +- ...ryAGI.OpenAI.RealtimeClient.ReferCall.g.cs | 2 +- ...yAGI.OpenAI.RealtimeClient.RejectCall.g.cs | 2 +- .../tryAGI.OpenAI.RealtimeClient.g.cs | 2 +- ...penAI.ResponsesClient.CancelAResponse.g.cs | 8 +- ....ResponsesClient.CreateAModelResponse.g.cs | 6 +- ...esClient.CreateAModelResponseAsStream.g.cs | 4 +- ....ResponsesClient.DeleteAModelResponse.g.cs | 4 +- ...nAI.ResponsesClient.GetAModelResponse.g.cs | 4 +- ...OpenAI.ResponsesClient.ListInputItems.g.cs | 4 +- .../tryAGI.OpenAI.ResponsesClient.g.cs | 2 +- ...AI.RolesClient.CreateOrganizationRole.g.cs | 6 +- ....OpenAI.RolesClient.CreateProjectRole.g.cs | 6 +- ...AI.RolesClient.DeleteOrganizationRole.g.cs | 4 +- ....OpenAI.RolesClient.DeleteProjectRole.g.cs | 4 +- ...nAI.RolesClient.ListOrganizationRoles.g.cs | 4 +- ...I.OpenAI.RolesClient.ListProjectRoles.g.cs | 4 +- ...AI.RolesClient.UpdateOrganizationRole.g.cs | 6 +- ....OpenAI.RolesClient.UpdateProjectRole.g.cs | 6 +- .../Generated/tryAGI.OpenAI.RolesClient.g.cs | 2 +- ...ryAGI.OpenAI.SkillsClient.CreateSkill.g.cs | 4 +- ...penAI.SkillsClient.CreateSkillVersion.g.cs | 4 +- ...ryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs | 4 +- ...penAI.SkillsClient.DeleteSkillVersion.g.cs | 4 +- .../tryAGI.OpenAI.SkillsClient.GetSkill.g.cs | 4 +- ...I.OpenAI.SkillsClient.GetSkillVersion.g.cs | 4 +- ...OpenAI.SkillsClient.ListSkillVersions.g.cs | 4 +- ...tryAGI.OpenAI.SkillsClient.ListSkills.g.cs | 4 +- ...killsClient.UpdateSkillDefaultVersion.g.cs | 6 +- .../Generated/tryAGI.OpenAI.SkillsClient.g.cs | 2 +- ...GI.OpenAI.UploadsClient.AddUploadPart.g.cs | 4 +- ...AGI.OpenAI.UploadsClient.CancelUpload.g.cs | 4 +- ...I.OpenAI.UploadsClient.CompleteUpload.g.cs | 6 +- ...AGI.OpenAI.UploadsClient.CreateUpload.g.cs | 6 +- .../tryAGI.OpenAI.UploadsClient.g.cs | 2 +- ...yAGI.OpenAI.UsageClient.AudioSpeeches.g.cs | 4 +- ...penAI.UsageClient.AudioTranscriptions.g.cs | 4 +- ...I.UsageClient.CodeInterpreterSessions.g.cs | 4 +- ...tryAGI.OpenAI.UsageClient.Completions.g.cs | 4 +- .../tryAGI.OpenAI.UsageClient.Costs.g.cs | 4 +- .../tryAGI.OpenAI.UsageClient.Embeddings.g.cs | 4 +- .../tryAGI.OpenAI.UsageClient.Images.g.cs | 4 +- ...tryAGI.OpenAI.UsageClient.Moderations.g.cs | 4 +- ...ryAGI.OpenAI.UsageClient.VectorStores.g.cs | 4 +- .../Generated/tryAGI.OpenAI.UsageClient.g.cs | 2 +- ...tsClient.AssignOrganizationRoleToUser.g.cs | 6 +- ...t.ListUserOrganizationRoleAssignments.g.cs | 4 +- ...ient.UnassignOrganizationRoleFromUser.g.cs | 4 +- ...UserOrganizationRoleAssignmentsClient.g.cs | 2 +- .../tryAGI.OpenAI.UsersClient.DeleteUser.g.cs | 4 +- .../tryAGI.OpenAI.UsersClient.ListUsers.g.cs | 4 +- .../tryAGI.OpenAI.UsersClient.ModifyUser.g.cs | 6 +- ...ryAGI.OpenAI.UsersClient.RetrieveUser.g.cs | 4 +- .../Generated/tryAGI.OpenAI.UsersClient.g.cs | 2 +- ...oresClient.CancelVectorStoreFileBatch.g.cs | 4 +- ....VectorStoresClient.CreateVectorStore.g.cs | 6 +- ...torStoresClient.CreateVectorStoreFile.g.cs | 6 +- ...oresClient.CreateVectorStoreFileBatch.g.cs | 6 +- ....VectorStoresClient.DeleteVectorStore.g.cs | 4 +- ...torStoresClient.DeleteVectorStoreFile.g.cs | 4 +- ...ctorStoresClient.ListVectorStoreFiles.g.cs | 4 +- ...esClient.ListVectorStoreFilesInABatch.g.cs | 4 +- ...I.VectorStoresClient.ListVectorStores.g.cs | 4 +- ....VectorStoresClient.ModifyVectorStore.g.cs | 6 +- ...ectorStoresClient.RetrieveVectorStore.g.cs | 4 +- ...rStoresClient.RetrieveVectorStoreFile.g.cs | 4 +- ...esClient.RetrieveVectorStoreFileBatch.g.cs | 4 +- ...Client.RetrieveVectorStoreFileContent.g.cs | 4 +- ....VectorStoresClient.SearchVectorStore.g.cs | 6 +- ...lient.UpdateVectorStoreFileAttributes.g.cs | 6 +- .../tryAGI.OpenAI.VectorStoresClient.g.cs | 2 +- ...ryAGI.OpenAI.VideosClient.CreateVideo.g.cs | 4 +- ...nAI.VideosClient.CreateVideoCharacter.g.cs | 4 +- ...I.OpenAI.VideosClient.CreateVideoEdit.g.cs | 4 +- ...OpenAI.VideosClient.CreateVideoExtend.g.cs | 4 +- ...ryAGI.OpenAI.VideosClient.DeleteVideo.g.cs | 4 +- ...OpenAI.VideosClient.GetVideoCharacter.g.cs | 4 +- ...tryAGI.OpenAI.VideosClient.ListVideos.g.cs | 4 +- ...tryAGI.OpenAI.VideosClient.RemixVideo.g.cs | 4 +- ...AGI.OpenAI.VideosClient.RetrieveVideo.g.cs | 4 +- .../Generated/tryAGI.OpenAI.VideosClient.g.cs | 2 +- 416 files changed, 26087 insertions(+), 4883 deletions(-) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs index 7a4327824..ee2266581 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct AllOf : global::System.IEquatable> + public readonly partial struct AllOf<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.IEquatable> { /// /// @@ -105,9 +105,9 @@ Value1 as object Value2?.ToString() ; - private static bool RequiresValue() => RequirementCache.Value; + private static bool RequiresValue<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>() => RequirementCache.Value; - private static bool DetermineRequiresValue(global::System.Type type) + private static bool DetermineRequiresValue([global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type type) { if (global::System.Nullable.GetUnderlyingType(type) != null) { @@ -138,7 +138,7 @@ private static bool DetermineRequiresValue(global::System.Type type) return false; } - private static class RequirementCache + private static class RequirementCache<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue> { public static readonly bool Value = DetermineRequiresValue(typeof(TValue)); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs index 0576647e5..81b9da77d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelARunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessCancelARunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs index 69b964fbd..03a486935 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateMessageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs index f2fae0078..e2b582167 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs @@ -80,7 +80,7 @@ partial void ProcessCreateRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -131,7 +131,7 @@ partial void ProcessCreateRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessCreateRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs index 95ea9919d..af0cc00c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateThreadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs index 9d276d719..ed1d5d9ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateThreadAndRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateThreadAndRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateThreadAndRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs index 48b21ecf5..b4c1b5b09 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteMessageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteMessageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessDeleteMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteMessageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteMessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs index 8d8c1a128..7ea7d5cd0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteThreadResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteThreadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteThreadResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteThreadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs index a4abeac6b..711502815 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs @@ -148,7 +148,7 @@ partial void ProcessListMessagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListMessagesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListMessagesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -178,7 +178,7 @@ partial void ProcessListMessagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs index 7a716e596..a549dbd05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs @@ -154,7 +154,7 @@ partial void ProcessListRunStepsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListRunStepsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListRunStepsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessListRunStepsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListRunStepsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListRunStepsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs index 0b93edf59..e232953ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs @@ -141,7 +141,7 @@ partial void ProcessListRunsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListRunsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListRunsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessListRunsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListRunsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListRunsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs index b6f65fd20..4bd991422 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyMessageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessModifyMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessModifyMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs index a8c024a42..14d7f1449 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessModifyRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessModifyRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs index fa0089e68..251ef8253 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyThreadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessModifyThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs index 51afa83f9..982c33626 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveMessageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.MessageObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRetrieveMessageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.MessageObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs index 2e83e3f04..41de1927d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRetrieveRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs index 028084202..5a0b3ddb0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs @@ -128,7 +128,7 @@ partial void ProcessRetrieveRunStepResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunStepObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunStepObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessRetrieveRunStepResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunStepObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunStepObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs index 49d72197a..05cb1af04 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs index 3199079fb..ded65c007 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs @@ -77,7 +77,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs index 2c5a65ae0..35952340a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AssistantsClient : global::tryAGI.OpenAI.IAssistants /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs index 0e0722d76..7ba53ce0f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs @@ -63,7 +63,7 @@ partial void ProcessCreateSpeechResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -137,7 +137,7 @@ partial void ProcessCreateSpeechResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs index 36b0e48c4..6630b944c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs @@ -212,7 +212,7 @@ partial void ProcessCreateTranscriptionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -242,7 +242,7 @@ partial void ProcessCreateTranscriptionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs index 234420709..c2610081f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs @@ -232,7 +232,7 @@ partial void ProcessCreateTranscriptionAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs index 8e759fc8a..0eb34ecd1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs @@ -145,7 +145,7 @@ partial void ProcessCreateTranslationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessCreateTranslationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs index c8d7a0224..11482e3c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs @@ -129,7 +129,7 @@ partial void ProcessCreateVoiceResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreateVoiceResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs index 63a062f10..3319c3c35 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs @@ -129,7 +129,7 @@ partial void ProcessCreateVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreateVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs index afbd49e89..24810a8bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs index c34d170e2..bd642e228 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs @@ -121,7 +121,7 @@ partial void ProcessListVoiceConsentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceConsentListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessListVoiceConsentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs index 610a5a34e..fc696f5cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs index b0f25b9df..da60fcedb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VoiceConsentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VoiceConsentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs index 0eeeb1c3f..eda5a4ade 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AudioClient : global::tryAGI.OpenAI.IAudioClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs index 86cc2c88f..44cefa6a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs @@ -171,7 +171,7 @@ partial void ProcessListAuditLogsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListAuditLogsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListAuditLogsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -201,7 +201,7 @@ partial void ProcessListAuditLogsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListAuditLogsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListAuditLogsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs index 948afba28..0cc23501b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class AuditLogsClient : global::tryAGI.OpenAI.IAuditLogsCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs index 0a53a20c8..aa1ec067d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs @@ -107,7 +107,7 @@ partial void ProcessCancelBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessCancelBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs index 2219a41b7..98a2004fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateBatchResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs index eac80c86e..3d55fda32 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs @@ -119,7 +119,7 @@ partial void ProcessListBatchesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListBatchesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListBatchesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListBatchesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListBatchesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListBatchesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs index 8470a74a3..24df99330 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Batch.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Batch.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs index c5a798dc7..94d76307c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class BatchClient : global::tryAGI.OpenAI.IBatchClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs index df97d7ed8..c1674258a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs @@ -68,7 +68,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs index e9e7aa824..01094792e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs @@ -73,7 +73,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs index 27461577e..48a1a4452 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs @@ -68,7 +68,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs index c5728003a..33366ec8e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs @@ -73,7 +73,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs index 44fbd66b4..062c33978 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs @@ -108,7 +108,7 @@ partial void ProcessDeleteCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteCertificateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteCertificateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteCertificateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteCertificateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs index ae26b5d48..550e96dac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs @@ -117,7 +117,7 @@ partial void ProcessGetCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGetCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs index eadb73b4d..7ba1402cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs @@ -128,7 +128,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs index 9176ed0ec..dd3395114 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectCertificatesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListCertificatesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListProjectCertificatesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListCertificatesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs index d3a89e274..0f231878f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyCertificateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessModifyCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs index d4688500a..dac273df5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs @@ -68,7 +68,7 @@ partial void ProcessUploadCertificateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessUploadCertificateResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Certificate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessUploadCertificateResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Certificate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs index c7b29a1b5..ec9262f94 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class CertificatesClient : global::tryAGI.OpenAI.ICertific /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs index 512f186c3..31bb6fc5f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs @@ -78,7 +78,7 @@ partial void ProcessCreateChatCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessCreateChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessCreateChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs index 753d05232..f4854ed07 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -147,7 +147,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.CreateChatCompletionStreamResponse.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.CreateChatCompletionStreamResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs index d181e7362..57895fb2f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs @@ -108,7 +108,7 @@ partial void ProcessDeleteChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionDeleted.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ChatCompletionDeleted.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessDeleteChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs index 7b644d62c..adfd922a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs index f305dc2ee..9780cf832 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs @@ -136,7 +136,7 @@ partial void ProcessGetChatMessagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionMessageList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ChatCompletionMessageList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessGetChatMessagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionMessageList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionMessageList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs index 42418ee6f..1c4003639 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs @@ -143,7 +143,7 @@ partial void ProcessListChatCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatCompletionList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ChatCompletionList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -173,7 +173,7 @@ partial void ProcessListChatCompletionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatCompletionList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatCompletionList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs index 5c2b0f145..fe57d53cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateChatCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateChatCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateChatCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs index 258bc9be7..ade1fbfeb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ChatClient : global::tryAGI.OpenAI.IChatClient, glob /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs index cc814a511..755e6263c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateCompletionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateCompletionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateCompletionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateCompletionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs index 0d17501f2..c0e74566a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class CompletionsClient : global::tryAGI.OpenAI.ICompletio /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs index c06cff961..4e112323e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateAConversationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs index 958238fd0..4bd1a20fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreateItemsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessCreateItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs index 75f155dc1..db1bff46b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedConversationResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedConversationResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs index 532fa1bf9..597c9c5c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs @@ -117,7 +117,7 @@ partial void ProcessDeleteAnItemResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessDeleteAnItemResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs index a7810543e..1a80d229e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs @@ -141,7 +141,7 @@ partial void ProcessListItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationItemList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessListItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs index 800554ab2..ef7c512f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs index 85596983c..6ccdc8e80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs @@ -126,7 +126,7 @@ partial void ProcessRetrieveAnItemResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationItem.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationItem.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessRetrieveAnItemResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs index 50e59d332..bf97ca380 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateAConversationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateAConversationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ConversationResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateAConversationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ConversationResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs index 8a765a199..ee4daf8b8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ConversationsClient : global::tryAGI.OpenAI.IConvers /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs index 3abc29715..67d6692e7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateEmbeddingsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateEmbeddingsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateEmbeddingsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateEmbeddingResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs index 01d4c1cd0..c407fc554 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class EmbeddingsClient : global::tryAGI.OpenAI.IEmbeddings /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs index c3b7f3bec..f145d47ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessCancelEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs index 9a5f29fb7..f554900b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateEvalResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessCreateEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs index 898c1fc65..2380b553a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateEvalRunResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateEvalRunResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -190,7 +190,7 @@ partial void ProcessCreateEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs index 3aaaf7550..f09497fa8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs @@ -95,13 +95,13 @@ partial void ProcessDeleteAnEvalResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessDeleteAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteEvalResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteEvalResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessDeleteAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteEvalResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteEvalResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs index 566ede500..a4473895e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs @@ -101,13 +101,13 @@ partial void ProcessDeleteEvalRunResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessDeleteEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -181,7 +181,7 @@ partial void ProcessDeleteEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteEvalRunResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs index 0581c85fd..7ca7bb3a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs @@ -107,7 +107,7 @@ partial void ProcessGetAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessGetAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs index 60bf4370c..8067c5ba1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs @@ -113,7 +113,7 @@ partial void ProcessGetAnEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRun.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessGetAnEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs index fb03b415b..766f7cfc8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs @@ -119,7 +119,7 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunOutputItem.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRunOutputItem.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunOutputItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunOutputItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs index dcd628884..62d249a9a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunOutputItemList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRunOutputItemList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunOutputItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunOutputItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs index 6cbdd4f28..f8cdb1481 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs @@ -141,7 +141,7 @@ partial void ProcessGetEvalRunsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalRunList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalRunList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessGetEvalRunsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalRunList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalRunList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs index 8789523cc..4017e6119 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs @@ -137,7 +137,7 @@ partial void ProcessListEvalsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.EvalList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.EvalList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessListEvalsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.EvalList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.EvalList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs index dc45ea95d..82afe30ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateAnEvalResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateAnEvalResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Eval.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessUpdateAnEvalResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Eval.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs index cea32ee84..dbb44bf28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class EvalsClient : global::tryAGI.OpenAI.IEvalsClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs index 2cdcf39ec..7ff5a4661 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteFileResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteFileResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteFileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs index f17c3e63e..47491f0fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs @@ -135,7 +135,7 @@ partial void ProcessListFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFilesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListFilesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs index ab7995354..518dffe8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs index 89d8c8a33..3ae04f150 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs @@ -145,7 +145,7 @@ partial void ProcessUploadFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.OpenAIFile.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessUploadFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.OpenAIFile.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs index 0941f6f6e..e5d8828f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class FilesClient : global::tryAGI.OpenAI.IFilesClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs index dfcaf6a79..a645093ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessCancelFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessCancelFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs index f276d8b4a..f5d3910b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs @@ -75,7 +75,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -125,7 +125,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs index 44eae4e54..2b0350039 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateFineTuningJobResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateFineTuningJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessCreateFineTuningJobResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs index 0c7db0794..92d83eccb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs @@ -118,7 +118,7 @@ partial void ProcessDeleteCheckpointPermissionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessDeleteCheckpointPermissionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs index 1850b8ef4..517d3443b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs @@ -144,7 +144,7 @@ partial void ProcessListCheckpointPermissionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessListCheckpointPermissionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs index a4c231c15..85bfc2b4e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs @@ -127,7 +127,7 @@ partial void ProcessListFineTuningCheckpointsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListFineTuningCheckpointsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs index 2cd35b855..d4635fdd2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs @@ -127,7 +127,7 @@ partial void ProcessListFineTuningEventsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessListFineTuningEventsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListFineTuningJobEventsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs index 4de95ba79..b8b35665a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs @@ -126,7 +126,7 @@ partial void ProcessListFineTuningJobsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListFineTuningJobsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs index f0ac19ef1..1b0126836 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessPauseFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessPauseFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs index f7c610c5a..249af772b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs @@ -109,7 +109,7 @@ partial void ProcessResumeFineTuningResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessResumeFineTuningResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs index b5b04d7ae..226b712be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs @@ -110,7 +110,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.FineTuningJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.FineTuningJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs index e44fa7c43..9d1eb207a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs @@ -67,7 +67,7 @@ partial void ProcessRunGraderResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessRunGraderResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RunGraderResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RunGraderResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessRunGraderResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RunGraderResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RunGraderResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs index f0ef3de88..9224ed6b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs @@ -67,7 +67,7 @@ partial void ProcessValidateGraderResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessValidateGraderResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ValidateGraderResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ValidateGraderResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessValidateGraderResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ValidateGraderResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ValidateGraderResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs index 462859f90..30b27ddd3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class FineTuningClient : global::tryAGI.OpenAI.IFineTuning /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs index f74a8a45c..9e4544bbe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs index aaf33abbc..b16816f49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs @@ -130,7 +130,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs index bd323dc8a..f1f710e99 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs @@ -113,7 +113,7 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs index e0757a9fe..e8a4c1962 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupOrganizationRoleAssignmentsClient : global::try /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs index c896b849f..14163b748 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessAddGroupUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAddGroupUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupUserAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupUserAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessAddGroupUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupUserAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupUserAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs index 644fe8fb5..85a75dc7b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs @@ -134,7 +134,7 @@ partial void ProcessListGroupUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UserListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListGroupUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs index 1efe10c62..0550097f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessRemoveGroupUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupUserDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupUserDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRemoveGroupUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupUserDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupUserDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs index 48e75c24b..c636eddeb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupUsersClient : global::tryAGI.OpenAI.IGroupUsers /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs index 1aa3adc1a..94c290d5c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs index fe00be900..d9a77873f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs index e996759cf..493033742 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs @@ -128,7 +128,7 @@ partial void ProcessListGroupsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListGroupsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs index 0db07ef36..ba544ed48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessUpdateGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupResourceWithSuccess.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs index b95fb9246..be6e34e7d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GroupsClient : global::tryAGI.OpenAI.IGroupsClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs index 0eb84f76b..fd59cb8d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAssistantsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs index 77faa7eec..4fd6c5073 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAudioClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs index 53e785686..f5bb24397 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IAuditLogsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs index 3e07f5b15..78e8675c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.g.cs @@ -37,7 +37,7 @@ public partial interface IBatchClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs index 7f47da44b..58665df0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.g.cs @@ -36,7 +36,7 @@ public partial interface ICertificatesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs index d5f236ace..9b9e64f4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.g.cs @@ -37,7 +37,7 @@ public partial interface IChatClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs index 548bd1d05..f657ebaa5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.g.cs @@ -37,7 +37,7 @@ public partial interface ICompletionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs index 407152846..833a97f54 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IConversationsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IConversationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs index 211bf8de1..599f4d96a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IEmbeddingsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs index 781968fa9..dff056f90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IEvalsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs index 81e1012e3..9d41cc7c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.g.cs @@ -37,7 +37,7 @@ public partial interface IFilesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs index bb669d2c3..c1e9e70d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.g.cs @@ -37,7 +37,7 @@ public partial interface IFineTuningClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs index e83cd4d13..1e926c20b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupOrganizationRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupOrganizationRoleAssignmentsClient : global::Syste /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs index cf439f48f..01d496190 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupUsersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupUsersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs index d288957e0..089922fc7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IGroupsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGroupsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs index 82a8ecc8b..9930dcb0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.g.cs @@ -37,7 +37,7 @@ public partial interface IImagesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs index cbe4c689e..b0d6c04bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IInvitesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs index 78f31f733..c77e2acef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IModelsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs index 30cf56656..0b8ed4c14 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IModerationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } 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 0c31675ef..942bcc7ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.g.cs @@ -37,7 +37,7 @@ public partial interface IOpenAiClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs index b365ee68e..9ab126cd4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectGroupRoleAssignmentsClient : global::System.IDi /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs index 7adeb7af4..b7fef149e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectGroupsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectGroupsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs index e3725fbef..21522e23d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectUserRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectUserRoleAssignmentsClient : global::System.IDis /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs index ccd5ae702..e15480ee9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs index 6870be21e..1954db82a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRealtimeClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs index fceef960e..2eed6a2c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IResponsesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs index b0b70be2a..977bd1dea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRolesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRolesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs index 2e3275c87..feaa9bcdf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISkillsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs index 02e3f4b2d..2caaf94bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.g.cs @@ -37,7 +37,7 @@ public partial interface IUploadsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs index fa87a6c8e..11f6cf3e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUsageClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs index 01107c9f6..ad7913621 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUserOrganizationRoleAssignmentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUserOrganizationRoleAssignmentsClient : global::System /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs index 693a34059..b26ec274a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUsersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs index 7a485618a..bc29852f1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVectorStoresClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs index fd636bcc6..7e63b1ed8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVideosClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs index 3a72edc23..cc2fbbf2f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs @@ -84,7 +84,7 @@ partial void ProcessCreateImageResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessCreateImageResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateImageResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs index c5d268338..a5775f605 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateImageAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -153,7 +153,7 @@ partial void ProcessCreateImageAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ImageGenStreamEvent.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.ImageGenStreamEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs index 6c2bf2539..b0ca87e40 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs @@ -238,7 +238,7 @@ partial void ProcessCreateImageEditResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -268,7 +268,7 @@ partial void ProcessCreateImageEditResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs index d1c9c4d52..81c9c2fa5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs @@ -258,7 +258,7 @@ partial void ProcessCreateImageEditAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ImageEditStreamEvent.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.ImageEditStreamEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs index cf80fd824..82760b647 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs @@ -156,7 +156,7 @@ partial void ProcessCreateImageVariationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ImagesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessCreateImageVariationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs index 149e752e0..2988a02e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ImagesClient : global::tryAGI.OpenAI.IImagesClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs index b2f34870c..d32cc529b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateInviteResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs index 84bdc9d4e..f00983480 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.InviteDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.InviteDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.InviteDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.InviteDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs index 55074d551..3993455ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs @@ -119,7 +119,7 @@ partial void ProcessListInvitesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.InviteListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.InviteListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListInvitesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.InviteListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.InviteListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs index 9274ad2a6..4dd72e146 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveInviteResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Invite.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveInviteResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Invite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs index dab32686b..67c7c47cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class InvitesClient : global::tryAGI.OpenAI.IInvitesClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs index 65c51da13..799f1ca4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class AllOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AllOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.AllOf Read( @@ -11,7 +11,8 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,7 +27,27 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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; } @@ -41,7 +62,9 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +79,9 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +97,9 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +111,9 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +138,20 @@ public override void Write( global::tryAGI.OpenAI.AllOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs index 37dcf8d6c..92e1eee00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs @@ -12,7 +12,8 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -64,7 +65,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +80,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); + urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +95,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); + containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,7 +110,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -118,7 +127,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js { try { - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -129,7 +140,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); + urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -140,7 +153,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); + containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -151,7 +166,9 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js try { - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -180,23 +197,32 @@ public override void Write( global::tryAGI.OpenAI.Annotation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsFileCitation) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation, typeof(global::tryAGI.OpenAI.FileCitationBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo); } else if (value.IsUrlCitation) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation, typeof(global::tryAGI.OpenAI.UrlCitationBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation!, typeInfo); } else if (value.IsContainerFileCitation) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation, typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation!, typeInfo); } else if (value.IsFilePath) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath, typeof(global::tryAGI.OpenAI.FilePath), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs index d3607c6e5..9cd768c0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs @@ -12,7 +12,8 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); + file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat { try { - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); + file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat try { - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.AnnotationsItem3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.File, typeof(global::tryAGI.OpenAI.FileAnnotation), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.File!, typeInfo); } else if (value.IsUrl) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url, typeof(global::tryAGI.OpenAI.UrlAnnotation), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs index 46cac4a3e..e372fa110 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.AnyOf Read( @@ -11,7 +11,8 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,7 +27,27 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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; } @@ -41,7 +62,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +79,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +97,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +111,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +138,20 @@ public override void Write( global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs index 907fea92c..05789cfd3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.AnyOf Read( @@ -11,7 +11,8 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,8 +27,38 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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 __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), 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)) __score2++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -44,7 +75,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +92,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +109,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +127,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +141,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +155,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,19 +184,26 @@ public override void Write( global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs index 4c59e7916..b8c5a0719 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs @@ -12,7 +12,8 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -51,7 +52,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -64,7 +67,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +82,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +99,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se { try { - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,7 +112,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se try { - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +125,9 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se try { - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,19 +154,26 @@ public override void Write( global::tryAGI.OpenAI.ApplyPatchOperationParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsCreateFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile, typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); } else if (value.IsDeleteFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile, typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); } else if (value.IsUpdateFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile, typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs index d6f6c2414..8f58f7fa8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs @@ -12,7 +12,8 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -56,7 +57,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); + thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +72,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); + run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +87,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); + runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +117,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -121,7 +132,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); + done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -136,7 +149,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { - thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); + thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,7 +162,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); + run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -158,7 +175,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); + runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -169,7 +188,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -180,7 +201,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -191,7 +214,9 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial try { - done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); + done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -224,31 +249,44 @@ public override void Write( global::tryAGI.OpenAI.AssistantStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsThread) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Thread, typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Thread!.Value, typeInfo); } else if (value.IsRun) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Run, typeof(global::tryAGI.OpenAI.RunStreamEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Run!.Value, typeInfo); } else if (value.IsRunStep) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStep, typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStep!.Value, typeInfo); } else if (value.IsMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.MessageStreamEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!.Value, typeInfo); } else if (value.IsError) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.ErrorEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); } else if (value.IsDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done, typeof(global::tryAGI.OpenAI.DoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs index 87de0ca42..6f25b14d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs @@ -12,7 +12,8 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -50,7 +51,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +66,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +81,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +96,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,7 +113,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +126,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +139,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -137,7 +152,9 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -166,23 +183,32 @@ public override void Write( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsJsonObject) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); } else if (value.IsJsonSchema) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs index 1a9f24603..18fd6235a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs @@ -12,7 +12,8 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -42,7 +43,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -55,7 +58,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,7 +75,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -81,7 +88,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js try { - named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,15 +115,20 @@ public override void Write( global::tryAGI.OpenAI.AssistantsApiToolChoiceOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsNamed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named, typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs index e4e7bd479..dc450a0f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -46,7 +47,9 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +62,9 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +79,9 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +92,9 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +119,20 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); } else if (value.IsCustom) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs index f902604db..32e175620 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsRefusal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs index f3ab2c430..0d2858352 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -74,7 +75,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); + developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +90,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,7 +105,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,7 +120,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +135,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +150,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -154,7 +167,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso { try { - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); + developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -165,7 +180,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -176,7 +193,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -187,7 +206,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -198,7 +219,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -209,7 +232,9 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -242,31 +267,44 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestMessage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsDeveloper) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Developer, typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Developer!, typeInfo); } else if (value.IsSystem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.System!, typeInfo); } else if (value.IsUser) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.User, typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo); } else if (value.IsAssistant) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant, typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo); } else if (value.IsTool) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo); } else if (value.IsFunction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs index dd17ed828..7cf0b1b0f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -39,7 +40,9 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,7 +57,9 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,11 +82,14 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs index 0a0eab3ce..1e04fa0d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -39,7 +40,9 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,7 +57,9 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,11 +82,14 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs index 723959c1e..4d16f01f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -54,7 +55,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -67,7 +70,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); + imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +85,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); + audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +100,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); + fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +117,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { - textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -119,7 +130,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); + imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -130,7 +143,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); + audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,7 +156,9 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: try { - fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); + fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -170,23 +187,32 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo); } else if (value.IsImageContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart!, typeInfo); } else if (value.IsAudioContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioContentPart!, typeInfo); } else if (value.IsFileContentPart) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileContentPart, typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileContentPart!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs index 8b6e51d48..d3c1469c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs @@ -12,7 +12,8 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -52,7 +53,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +68,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +83,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); + functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +98,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); + customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +115,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +128,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -128,7 +141,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); + functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +154,9 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J try { - customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); + customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -168,23 +185,32 @@ public override void Write( global::tryAGI.OpenAI.ChatCompletionToolChoiceOption value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsToolChoiceMode) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode, typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode!.Value, typeInfo); } else if (value.IsAllowedTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools, typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools!, typeInfo); } else if (value.IsFunctionToolChoice) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolChoice, typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolChoice!, typeInfo); } else if (value.IsCustomToolChoice) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolChoice, typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolChoice!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs index b2af0f904..a9396b439 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs @@ -12,7 +12,8 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); + auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); + @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso { try { - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); + auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso try { - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); + @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.ChunkingStrategyRequestParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsAuto) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto, typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto!, typeInfo); } else if (value.IsStatic) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs index 54c1b51d0..f219b1537 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs @@ -12,7 +12,8 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -89,7 +90,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); + click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +105,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); + doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +120,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); + drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -128,7 +135,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); + keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,7 +150,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); + move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -154,7 +165,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); + screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -167,7 +180,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); + scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -180,7 +195,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); + type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -193,7 +210,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); + wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -208,7 +227,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio { try { - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); + click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -219,7 +240,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); + doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -230,7 +253,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); + drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -241,7 +266,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); + keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -252,7 +279,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); + move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -263,7 +292,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); + screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -274,7 +305,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); + scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -285,7 +318,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); + type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -296,7 +331,9 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio try { - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); + wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -335,43 +372,62 @@ public override void Write( global::tryAGI.OpenAI.ComputerAction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsClick) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Click, typeof(global::tryAGI.OpenAI.ClickParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Click!, typeInfo); } else if (value.IsDoubleClick) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DoubleClick, typeof(global::tryAGI.OpenAI.DoubleClickAction), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DoubleClick!, typeInfo); } else if (value.IsDrag) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Drag, typeof(global::tryAGI.OpenAI.DragParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Drag!, typeInfo); } else if (value.IsKeypress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Keypress, typeof(global::tryAGI.OpenAI.KeyPressAction), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Keypress!, typeInfo); } else if (value.IsMove) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Move, typeof(global::tryAGI.OpenAI.MoveParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Move!, typeInfo); } else if (value.IsScreenshot) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Screenshot, typeof(global::tryAGI.OpenAI.ScreenshotParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Screenshot!, typeInfo); } else if (value.IsScroll) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll, typeof(global::tryAGI.OpenAI.ScrollParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll!, typeInfo); } else if (value.IsType) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Type, typeof(global::tryAGI.OpenAI.TypeParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Type!, typeInfo); } else if (value.IsWait) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wait, typeof(global::tryAGI.OpenAI.WaitParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wait!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs index 0f60df9d2..d76a7dd0a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs @@ -12,7 +12,8 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -49,7 +50,9 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +65,9 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +82,9 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -88,7 +95,9 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J try { - computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,15 +122,20 @@ public override void Write( global::tryAGI.OpenAI.ComputerToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsComputerToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput, typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!, typeInfo); } else if (value.IsComputerToolCallOutputResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs index ee7f2dfcd..c297e4746 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs @@ -12,7 +12,8 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), 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::tryAGI.OpenAI.OutputContent), 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; } @@ -42,7 +63,9 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); + inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); + outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); + inputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json try { - outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); + outputContentTypes = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.Content5 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsInputContentTypes) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputContentTypes, typeof(global::tryAGI.OpenAI.InputContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputContentTypes!.Value, typeInfo); } else if (value.IsOutputContentTypes) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputContentTypes, typeof(global::tryAGI.OpenAI.OutputContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputContentTypes!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs index ab28b1998..2a89ed0ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs @@ -12,7 +12,8 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -88,7 +89,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,7 +104,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +119,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -127,7 +134,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); + summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -140,7 +149,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -153,7 +164,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -166,7 +179,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -179,7 +194,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); + computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -192,7 +209,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -207,7 +226,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -218,7 +239,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -229,7 +252,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -240,7 +265,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); + summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -251,7 +278,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -262,7 +291,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -273,7 +304,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -284,7 +317,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); + computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -295,7 +330,9 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -334,43 +371,62 @@ public override void Write( global::tryAGI.OpenAI.ContentItem3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsOutputText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); } else if (value.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.TextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsSummaryText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText, typeof(global::tryAGI.OpenAI.SummaryTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText!, typeInfo); } else if (value.IsReasoningText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText, typeof(global::tryAGI.OpenAI.ReasoningTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); } else if (value.IsRefusal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); } else if (value.IsInputImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); } else if (value.IsComputerScreenshot) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot, typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot!, typeInfo); } else if (value.IsInputFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs index 1b493f3cb..b9c5aa46e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs @@ -12,7 +12,8 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); + quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. try { - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); + quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.ContentItem4 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.UserMessageInputText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsQuotedText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QuotedText, typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.QuotedText!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs index 2cb38e0cd..637ae34d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs @@ -12,7 +12,8 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -234,7 +235,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -247,7 +250,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -260,7 +265,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -273,7 +280,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -286,7 +295,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -299,7 +310,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -312,7 +325,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -325,7 +340,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -338,7 +355,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -351,7 +370,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -364,7 +385,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -377,7 +400,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -390,7 +415,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -403,7 +430,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -416,7 +445,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -429,7 +460,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -442,7 +475,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -455,7 +490,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -468,7 +505,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -481,7 +520,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -494,7 +535,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -507,7 +550,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -520,7 +565,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -533,7 +580,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -546,7 +595,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -561,7 +612,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -572,7 +625,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -583,7 +638,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -594,7 +651,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -605,7 +664,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -616,7 +677,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -627,7 +690,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -638,7 +703,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -649,7 +716,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -660,7 +729,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -671,7 +742,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -682,7 +755,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -693,7 +768,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -704,7 +781,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -715,7 +794,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -726,7 +807,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -737,7 +820,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -748,7 +833,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -759,7 +846,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -770,7 +859,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -781,7 +872,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -792,7 +885,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -803,7 +898,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -814,7 +911,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -825,7 +924,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -896,107 +997,158 @@ public override void Write( global::tryAGI.OpenAI.ConversationItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.Message), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } else if (value.IsFunctionToolCallResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource, typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource!.Value, typeInfo); } else if (value.IsFunctionToolCallOutputResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResource, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResource!.Value, typeInfo); } else if (value.IsFileSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } else if (value.IsWebSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } else if (value.IsImageGenerationCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } else if (value.IsComputerCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } else if (value.IsComputerToolCallOutputResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource!.Value, typeInfo); } else if (value.IsToolSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); } else if (value.IsToolSearchOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); } else if (value.IsReasoning) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } else if (value.IsCompaction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); } else if (value.IsCodeInterpreterCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } else if (value.IsLocalShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); } else if (value.IsLocalShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); } else if (value.IsShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } else if (value.IsShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); } else if (value.IsApplyPatchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } else if (value.IsApplyPatchCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsCustomToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } else if (value.IsCustomToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs index e0a690914..ddc03bd66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs @@ -12,7 +12,8 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -41,7 +42,9 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,7 +57,9 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); + conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +74,9 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { - conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +87,9 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa try { - conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); + conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,15 +114,20 @@ public override void Write( global::tryAGI.OpenAI.ConversationParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsConversationId) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationId, typeof(string), options); + 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.ConversationId!, typeInfo); } else if (value.IsConversationObject) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationObject, typeof(global::tryAGI.OpenAI.ConversationParam2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationObject!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs index 9ea14245d..9248c800b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs @@ -12,7 +12,8 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -67,7 +68,9 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +83,9 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +100,9 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +113,9 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json try { - createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -131,15 +140,20 @@ public override void Write( global::tryAGI.OpenAI.CreateChatCompletionRequest value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsModelResponseProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!.Value, typeInfo); } else if (value.IsCreateChatCompletionRequestVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateChatCompletionRequestVariant2, typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateChatCompletionRequestVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs index cdf99f621..7a581286d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs @@ -12,7 +12,8 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -45,7 +46,9 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); + simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -58,7 +61,9 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { - simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); + simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +91,9 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio try { - evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +118,20 @@ public override void Write( global::tryAGI.OpenAI.CreateEvalItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsSimpleInputMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SimpleInputMessage, typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SimpleInputMessage!, typeInfo); } else if (value.IsEvalMessageObject) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalMessageObject, typeof(global::tryAGI.OpenAI.EvalItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalMessageObject!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs index 769a0ad9c..a6cc92245 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs @@ -12,7 +12,8 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -50,7 +51,9 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +66,9 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +83,9 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { - modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +96,9 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js try { - createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,15 +123,20 @@ public override void Write( global::tryAGI.OpenAI.CreateModelResponseProperties value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsModelResponseProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!, typeInfo); } else if (value.IsCreateModelResponsePropertiesVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateModelResponsePropertiesVariant2, typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateModelResponsePropertiesVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs index 5cf1f01b4..7f02d5d37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs @@ -12,7 +12,8 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -63,7 +64,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +79,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +94,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,7 +111,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +124,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio try { - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +137,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio try { - createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -153,19 +166,26 @@ public override void Write( global::tryAGI.OpenAI.CreateResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsModelProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!.Value, typeInfo); } else if (value.IsProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); } else if (value.IsCreateResponseVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponseVariant3, typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponseVariant3!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs index 7ddaf1510..5582f3ecd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs @@ -12,7 +12,8 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); + speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); + speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. { try { - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); + speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. try { - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); + speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsSpeechAudioDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDelta, typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDelta!, typeInfo); } else if (value.IsSpeechAudioDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDone, typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechAudioDone!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs index 118753b86..8197f6dce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs @@ -12,7 +12,8 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: { try { - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +93,9 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: try { - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,15 +120,20 @@ public override void Write( global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTokens) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tokens, typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tokens!, typeInfo); } else if (value.IsDuration) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Duration, typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Duration!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs index cf4c05142..e3618e62c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs @@ -12,7 +12,8 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -57,7 +58,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); + transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,7 +73,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); + transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +88,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); + transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +105,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste { try { - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); + transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,7 +118,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste try { - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); + transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -120,7 +131,9 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste try { - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); + transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,19 +160,26 @@ public override void Write( global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTranscriptTextSegment) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextSegment, typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextSegment!, typeInfo); } else if (value.IsTranscriptTextDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDelta, typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDelta!, typeInfo); } else if (value.IsTranscriptTextDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDone, typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDone!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs index 545aab9ff..17bb774a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs @@ -12,7 +12,8 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +93,9 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso try { - customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,15 +120,20 @@ public override void Write( global::tryAGI.OpenAI.CustomToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsCustomToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); } else if (value.IsCustomToolCallOutputResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutputResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs index 97760ccf9..489412fc9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs @@ -12,7 +12,8 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -49,7 +50,9 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +65,9 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +82,9 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -88,7 +95,9 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri try { - customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,15 +122,20 @@ public override void Write( global::tryAGI.OpenAI.CustomToolCallResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsCustomToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } else if (value.IsCustomToolCallResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs index 08330d128..c2e0e4bd9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs @@ -12,7 +12,8 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -40,7 +41,9 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali { try { - resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); + resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -55,7 +58,9 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali { try { - resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); + resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,11 +83,14 @@ public override void Write( global::tryAGI.OpenAI.DeletedConversation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Resource, typeof(global::tryAGI.OpenAI.DeletedConversationResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Resource!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs index de77aaa04..ef3ce75bf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs @@ -12,7 +12,8 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -52,7 +53,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); + containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +68,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +83,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +100,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali { try { - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); + containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,7 +113,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +126,9 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -142,19 +155,26 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant1 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsContainerAuto) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerAuto, typeof(global::tryAGI.OpenAI.ContainerAutoParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerAuto!, typeInfo); } else if (value.IsLocal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); } else if (value.IsContainerReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs index e9c883ec8..e00981e90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs @@ -12,7 +12,8 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial { try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant12 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsLocal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); } else if (value.IsContainerReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs index 88470e224..82cf582be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs @@ -12,7 +12,8 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial { try { - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial try { - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.EnvironmentVariant13 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsLocal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local, typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); } else if (value.IsContainerReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference, typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs index a9be703c8..0043a3bae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs @@ -12,7 +12,8 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial { try { - labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); + labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -58,7 +61,9 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial { try { - labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); + labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -81,11 +86,14 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderLabelModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsLabelModelGrader) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LabelModelGrader, typeof(global::tryAGI.OpenAI.GraderLabelModel), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LabelModelGrader!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs index 1e6d5c525..fc6ef2c5f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs @@ -12,7 +12,8 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -45,7 +46,9 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -58,7 +61,9 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { - pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +91,9 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat try { - evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +118,20 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderPython value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsPythonGrader) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PythonGrader, typeof(global::tryAGI.OpenAI.GraderPython), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PythonGrader!, typeInfo); } else if (value.IsEvalGraderPythonVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPythonVariant2, typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPythonVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs index 906b7647d..eb1f7c217 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs @@ -12,7 +12,8 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { - scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +93,9 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial try { - evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,15 +120,20 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderScoreModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsScoreModelGrader) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModelGrader, typeof(global::tryAGI.OpenAI.GraderScoreModel), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModelGrader!, typeInfo); } else if (value.IsEvalGraderScoreModelVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModelVariant2, typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModelVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs index bb3e10ca2..47e7c0869 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs @@ -12,7 +12,8 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -42,7 +43,9 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria { try { - stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria { try { - stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,11 +85,14 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderStringCheck value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsStringCheckGrader) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StringCheckGrader, typeof(global::tryAGI.OpenAI.GraderStringCheck), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StringCheckGrader!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs index a199de034..32e16153f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs @@ -12,7 +12,8 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -46,7 +47,9 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +62,9 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +79,9 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { - textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +92,9 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se try { - evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +119,20 @@ public override void Write( global::tryAGI.OpenAI.EvalGraderTextSimilarity value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextSimilarityGrader) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarityGrader, typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarityGrader!, typeInfo); } else if (value.IsEvalGraderTextSimilarityVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarityVariant2, typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarityVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs index 6fe36061f..c4cf1b3a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs @@ -12,7 +12,8 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), 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; } @@ -42,7 +63,9 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); + evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); + evalContentItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati try { - anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + anArrayOfInputTextOutputTextInputImageAndInputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.EvalItemContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsEvalContentItem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalContentItem, typeof(global::tryAGI.OpenAI.EvalItemContentItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalContentItem!.Value, typeInfo); } else if (value.IsAnArrayOfInputTextOutputTextInputImageAndInputAudio) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnArrayOfInputTextOutputTextInputImageAndInputAudio, typeof(global::System.Collections.Generic.IList), options); + 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.AnArrayOfInputTextOutputTextInputImageAndInputAudio!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs index 46f6628c4..0d63d0d5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs @@ -12,7 +12,8 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -58,7 +59,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +74,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +89,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -97,7 +104,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +119,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); + inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,7 +136,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -136,7 +149,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,7 +162,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -158,7 +175,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -169,7 +188,9 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali try { - inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); + inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -200,27 +221,38 @@ public override void Write( global::tryAGI.OpenAI.EvalItemContentItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextInput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput, typeof(string), options); + 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.TextInput!, typeInfo); } else if (value.IsInputText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsOutputText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); } else if (value.IsInputImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.EvalItemInputImage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); } else if (value.IsInputAudio) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudio, typeof(global::tryAGI.OpenAI.InputAudio), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudio!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs index fa8d8507e..a272827a5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs @@ -12,7 +12,8 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -45,7 +46,9 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -58,7 +61,9 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +91,9 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json try { - compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +118,20 @@ public override void Write( global::tryAGI.OpenAI.Filters2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsComparisonFilter) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); } else if (value.IsCompoundFilter) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter, typeof(global::tryAGI.OpenAI.CompoundFilter), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs index 21fc916cb..0fbc5bd30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs @@ -12,7 +12,8 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J try { - compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.FiltersItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsComparisonFilter) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); } else if (value.IsCompoundFilterVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilterVariant2, typeof(object), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilterVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs index cfad8ea6a..0ebfb5283 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs @@ -12,7 +12,8 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -48,7 +49,9 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); + assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +64,9 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +81,9 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { - assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); + assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +94,9 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global try { - assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,15 +121,20 @@ public override void Write( global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsAssistantMessage1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage1, typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage1!, typeInfo); } else if (value.IsAssistantMessage2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage2, typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs index efd76b331..aa05712e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs @@ -12,7 +12,8 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); + grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC try { - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); + grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.Format2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsGrammar) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grammar, typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grammar!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs index a3f5774c7..dddb86e0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs @@ -12,7 +12,8 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -54,7 +55,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -67,7 +70,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +85,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +115,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +128,9 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,19 +157,26 @@ public override void Write( global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsInputImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); } else if (value.IsInputFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs index dc0720529..ab8e431fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs @@ -12,7 +12,8 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T { try { - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T try { - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTimeout) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); } else if (value.IsExit) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs index 195aa5060..e9e03f5f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs @@ -12,7 +12,8 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -48,7 +49,9 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +64,9 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +81,9 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +94,9 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J try { - functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,15 +121,20 @@ public override void Write( global::tryAGI.OpenAI.FunctionToolCallOutputResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsFunctionToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!, typeInfo); } else if (value.IsFunctionToolCallOutputResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs index cf40a3cd3..4a06d7af1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs @@ -12,7 +12,8 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -50,7 +51,9 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +66,9 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +83,9 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +96,9 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se try { - functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,15 +123,20 @@ public override void Write( global::tryAGI.OpenAI.FunctionToolCallResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsFunctionToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!, typeInfo); } else if (value.IsFunctionToolCallResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs index c86d9de03..d02c26f79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs @@ -12,7 +12,8 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -56,7 +57,9 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); + imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +72,9 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); + imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +89,9 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial { try { - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); + imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial try { - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); + imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -120,15 +129,20 @@ public override void Write( global::tryAGI.OpenAI.ImageEditStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsImageEditPartialImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditPartialImage, typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditPartialImage!, typeInfo); } else if (value.IsImageEditCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditCompleted, typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageEditCompleted!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs index 9a5340d0f..3f7045071 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs @@ -12,7 +12,8 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -56,7 +57,9 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); + imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +72,9 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); + imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +89,9 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); + imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali try { - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); + imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -120,15 +129,20 @@ public override void Write( global::tryAGI.OpenAI.ImageGenStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsImageGenerationPartialImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationPartialImage, typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationPartialImage!, typeInfo); } else if (value.IsImageGenerationCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCompleted, typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCompleted!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs index fca34ce52..f02318544 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs @@ -12,7 +12,8 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -54,7 +55,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -67,7 +70,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +85,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +115,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +128,9 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,19 +157,26 @@ public override void Write( global::tryAGI.OpenAI.InputContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsInputImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); } else if (value.IsInputFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs index cc47b2c66..2bed7a56b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs @@ -12,7 +12,8 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -49,7 +50,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +65,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); + item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); + itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +97,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,7 +110,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso try { - item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); + item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,7 +123,9 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso try { - itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); + itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,19 +152,26 @@ public override void Write( global::tryAGI.OpenAI.InputItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.EasyInputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } else if (value.IsItem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Item, typeof(global::tryAGI.OpenAI.Item), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Item!.Value, typeInfo); } else if (value.IsItemReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReference, typeof(global::tryAGI.OpenAI.ItemReferenceParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReference!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs index 12b59afed..d161ba9c0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs @@ -12,7 +12,8 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -45,7 +46,9 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -58,7 +61,9 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +91,9 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial try { - inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +118,20 @@ public override void Write( global::tryAGI.OpenAI.InputMessageResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsInputMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage, typeof(global::tryAGI.OpenAI.InputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!, typeInfo); } else if (value.IsInputMessageResourceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessageResourceVariant2, typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessageResourceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs index d39fcae03..6e041f554 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs @@ -12,7 +12,8 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js } 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; } @@ -42,7 +63,9 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - inputItemList = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + inputItemList = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js try { - inputItemList = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + inputItemList = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.InputParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTextInput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextInput, typeof(string), options); + 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.TextInput!, typeInfo); } else if (value.IsInputItemList) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputItemList, typeof(global::System.Collections.Generic.IList), options); + 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.InputItemList!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs index ba903ce4a..cbe22eee4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs @@ -12,7 +12,8 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -252,7 +253,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -265,7 +268,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -278,7 +283,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -291,7 +298,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -304,7 +313,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); + computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -317,7 +328,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -330,7 +343,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -343,7 +358,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -356,7 +373,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -369,7 +388,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -382,7 +403,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -395,7 +418,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -408,7 +433,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -421,7 +448,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -434,7 +463,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -447,7 +478,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -460,7 +493,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -473,7 +508,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -486,7 +523,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -499,7 +538,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -512,7 +553,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -525,7 +568,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -538,7 +583,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -551,7 +598,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -564,7 +613,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -577,7 +628,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -592,7 +645,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -603,7 +658,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -614,7 +671,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -625,7 +684,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -636,7 +697,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); + computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -647,7 +710,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -658,7 +723,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -669,7 +736,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -680,7 +749,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -691,7 +762,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -702,7 +775,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -713,7 +788,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -724,7 +801,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -735,7 +814,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -746,7 +827,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -757,7 +840,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -768,7 +853,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -779,7 +866,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -790,7 +879,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -801,7 +892,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -812,7 +905,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -823,7 +918,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -834,7 +931,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -845,7 +944,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -856,7 +957,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -867,7 +970,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -940,111 +1045,164 @@ public override void Write( global::tryAGI.OpenAI.Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsMessage1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1, typeof(global::tryAGI.OpenAI.InputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); } else if (value.IsMessage2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2, typeof(global::tryAGI.OpenAI.OutputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); } else if (value.IsFileSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } else if (value.IsComputerCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } else if (value.IsComputerCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput, typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput!, typeInfo); } else if (value.IsWebSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } else if (value.IsFunctionCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } else if (value.IsFunctionCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); } else if (value.IsToolSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); } else if (value.IsToolSearchOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); } else if (value.IsReasoning) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } else if (value.IsCompaction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); } else if (value.IsImageGenerationCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } else if (value.IsCodeInterpreterCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } else if (value.IsLocalShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); } else if (value.IsLocalShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); } else if (value.IsShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } else if (value.IsShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); } else if (value.IsApplyPatchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } else if (value.IsApplyPatchCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsCustomToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); } else if (value.IsCustomToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs index 112b4edd5..246e3fc66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs @@ -12,7 +12,8 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -246,7 +247,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -259,7 +262,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -272,7 +277,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -285,7 +292,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -298,7 +307,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -311,7 +322,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -324,7 +337,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -337,7 +352,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -350,7 +367,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -363,7 +382,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -376,7 +397,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -389,7 +412,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -402,7 +427,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -415,7 +442,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -428,7 +457,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -441,7 +472,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -454,7 +487,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -467,7 +502,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -480,7 +517,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -493,7 +532,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -506,7 +547,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -519,7 +562,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -532,7 +577,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -545,7 +592,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -558,7 +607,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -573,7 +624,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -584,7 +637,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -595,7 +650,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -606,7 +663,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -617,7 +676,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -628,7 +689,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -639,7 +702,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -650,7 +715,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -661,7 +728,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -672,7 +741,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -683,7 +754,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -694,7 +767,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -705,7 +780,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -716,7 +793,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -727,7 +806,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -738,7 +819,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -749,7 +832,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -760,7 +845,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -771,7 +858,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -782,7 +871,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -793,7 +884,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -804,7 +897,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -815,7 +910,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -826,7 +923,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -837,7 +936,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso try { - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -908,107 +1009,158 @@ public override void Write( global::tryAGI.OpenAI.ItemField value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.Message), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } else if (value.IsFunctionCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } else if (value.IsToolSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); } else if (value.IsToolSearchOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); } else if (value.IsFunctionCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); } else if (value.IsFileSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } else if (value.IsWebSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } else if (value.IsImageGenerationCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } else if (value.IsComputerCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } else if (value.IsComputerToolCallOutputResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource!.Value, typeInfo); } else if (value.IsReasoning) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } else if (value.IsCompaction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); } else if (value.IsCodeInterpreterCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } else if (value.IsLocalShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); } else if (value.IsLocalShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); } else if (value.IsShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } else if (value.IsShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); } else if (value.IsApplyPatchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } else if (value.IsApplyPatchCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsCustomToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } else if (value.IsCustomToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs index d15bc7c6e..d5f61c250 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs @@ -12,7 +12,8 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -227,7 +228,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -240,7 +243,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -253,7 +258,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -266,7 +273,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -279,7 +288,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -292,7 +303,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -305,7 +318,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -318,7 +333,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -331,7 +348,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -344,7 +363,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -357,7 +378,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -370,7 +393,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -383,7 +408,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -396,7 +423,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -409,7 +438,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -422,7 +453,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -435,7 +468,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -448,7 +483,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -461,7 +498,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -474,7 +513,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -487,7 +528,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -500,7 +543,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -513,7 +558,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -526,7 +573,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -539,7 +588,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); + responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -552,7 +603,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -567,7 +620,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { - inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); + inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -578,7 +633,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -589,7 +646,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -600,7 +659,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -611,7 +672,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -622,7 +685,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -633,7 +698,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -644,7 +711,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -655,7 +724,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -666,7 +737,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -677,7 +750,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -688,7 +763,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -699,7 +776,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -710,7 +789,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -721,7 +802,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -732,7 +815,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -743,7 +828,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -754,7 +841,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -765,7 +854,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -776,7 +867,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -787,7 +880,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -798,7 +893,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -809,7 +906,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -820,7 +919,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -831,7 +932,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); + responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -842,7 +945,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. try { - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -915,111 +1020,164 @@ public override void Write( global::tryAGI.OpenAI.ItemResource value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsInputMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage, typeof(global::tryAGI.OpenAI.InputMessageResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!.Value, typeInfo); } else if (value.IsMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.OutputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } else if (value.IsFileSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } else if (value.IsComputerCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } else if (value.IsComputerToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!.Value, typeInfo); } else if (value.IsWebSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } else if (value.IsFunctionToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall, typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!.Value, typeInfo); } else if (value.IsFunctionToolCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!.Value, typeInfo); } else if (value.IsToolSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); } else if (value.IsToolSearchOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); } else if (value.IsReasoning) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } else if (value.IsCompaction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); } else if (value.IsImageGenerationCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } else if (value.IsCodeInterpreterCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } else if (value.IsLocalShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); } else if (value.IsLocalShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); } else if (value.IsShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } else if (value.IsShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); } else if (value.IsApplyPatchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } else if (value.IsApplyPatchCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsResponseCustomToolCallItem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallItem, typeof(global::tryAGI.OpenAI.CustomToolCallResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallItem!.Value, typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs index 746366a92..f6266cd70 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs @@ -12,7 +12,8 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -59,7 +60,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +75,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +90,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +105,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,7 +120,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +137,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -137,7 +150,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -148,7 +163,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -159,7 +176,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -170,7 +189,9 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ try { - messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -201,27 +222,38 @@ public override void Write( global::tryAGI.OpenAI.MessageStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsMessageStreamEventVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant1, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant1!, typeInfo); } else if (value.IsMessageStreamEventVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant2, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant2!, typeInfo); } else if (value.IsMessageStreamEventVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant3, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant3!, typeInfo); } else if (value.IsMessageStreamEventVariant4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant4, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant4!, typeInfo); } else if (value.IsMessageStreamEventVariant5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant5, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant5!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs index 12d6b5185..21cfa9b06 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs @@ -12,7 +12,8 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), 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::tryAGI.OpenAI.ModelIdsResponses), 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; } @@ -42,7 +63,9 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json try { - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.ModelIds value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsShared) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.ModelIdsShared), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); } else if (value.IsResponses) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses, typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs index 74cd755ac..1f4012547 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs @@ -12,7 +12,8 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,8 +28,38 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), 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(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)) __score1++; + } + } + } var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(object), 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)) __score2++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -45,7 +76,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +93,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +110,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +128,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,7 +142,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +156,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ try { - modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -142,19 +185,26 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsCompaction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResponses) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses, typeof(global::tryAGI.OpenAI.ModelIdsResponses), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); } else if (value.IsModelIdsCompactionVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant2, typeof(string), options); + 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.ModelIdsCompactionVariant2!, typeInfo); } else if (value.IsModelIdsCompactionVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant3, typeof(object), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant3!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs index e2e464472..29c774273 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs @@ -12,7 +12,8 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), 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::tryAGI.OpenAI.ModelIdsResponsesEnum), 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; } @@ -42,7 +63,9 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); + responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa try { - responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); + responsesOnlyModel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsResponses value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsShared) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.ModelIdsShared), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); } else if (value.IsResponsesOnlyModel) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesOnlyModel, typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesOnlyModel!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs index b34a5ff83..2e30b4123 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs @@ -12,7 +12,8 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } 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::tryAGI.OpenAI.ModelIdsSharedEnum), 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; } @@ -42,7 +63,9 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.ModelIdsShared value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsModelIdsSharedVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsSharedVariant1, typeof(string), options); + 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.ModelIdsSharedVariant1!, typeInfo); } else if (value.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs index 88fd57678..1ba9ca7fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs @@ -12,7 +12,8 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsDisabled) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); } else if (value.IsAllowlist) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs index 256a9451b..99deecbea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs @@ -12,7 +12,8 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsDisabled) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); } else if (value.IsAllowlist) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs index 81ab97fcd..1b6282bfc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs @@ -12,7 +12,8 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio { try { - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio try { - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.NetworkPolicy3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsDisabled) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); } else if (value.IsAllowlist) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist, typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs index b26989c7d..5ec3d6522 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,7 +27,27 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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; } @@ -41,7 +62,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +79,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +97,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +111,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +138,20 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs index 118cc2a0b..62653865d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,8 +27,38 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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 __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), 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)) __score2++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -44,7 +75,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +92,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +109,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +127,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +141,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +155,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,19 +184,26 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs index 3836087e3..ecedd13df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T4> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,9 +27,49 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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 __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), 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)) __score2++; + } + } + } var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), 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)) __score3++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -47,7 +88,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +105,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +122,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +139,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +157,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -120,7 +171,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,7 +185,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,7 +199,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -173,23 +230,32 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } else if (value.IsValue4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs index 8775739f3..7199a13ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T4, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T5> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.S global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,10 +27,60 @@ public class OneOfJsonConverter : global::System.Text.Json.S } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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 __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), 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)) __score2++; + } + } + } var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), 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)) __score3++; + } + } + } var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), 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)) __score4++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -50,7 +101,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +118,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +135,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +152,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +169,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +187,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -138,7 +201,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -150,7 +215,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +229,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -174,7 +243,9 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -205,27 +276,38 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } else if (value.IsValue4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); } else if (value.IsValue5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs index 410b6dd05..3cd8e3742 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs @@ -3,7 +3,7 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T4, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T5, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T6, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T7, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T8, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T9> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::tryAGI.OpenAI.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::Sy global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -26,14 +27,104 @@ public class OneOfJsonConverter : global::Sy } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), 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(T2), 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 __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), 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)) __score2++; + } + } + } var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), 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)) __score3++; + } + } + } var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), 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)) __score4++; + } + } + } var __score5 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T6), 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)) __score5++; + } + } + } var __score6 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T7), 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)) __score6++; + } + } + } var __score7 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T8), 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)) __score7++; + } + } + } var __score8 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T9), 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)) __score8++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,7 +153,9 @@ public class OneOfJsonConverter : global::Sy try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +170,9 @@ public class OneOfJsonConverter : global::Sy try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +187,9 @@ public class OneOfJsonConverter : global::Sy try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,7 +204,9 @@ public class OneOfJsonConverter : global::Sy try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -122,7 +221,9 @@ public class OneOfJsonConverter : global::Sy try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -137,7 +238,9 @@ public class OneOfJsonConverter : global::Sy try { - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -152,7 +255,9 @@ public class OneOfJsonConverter : global::Sy try { - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); + value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -167,7 +272,9 @@ public class OneOfJsonConverter : global::Sy try { - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); + value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -182,7 +289,9 @@ public class OneOfJsonConverter : global::Sy try { - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); + value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -198,7 +307,9 @@ public class OneOfJsonConverter : global::Sy try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -210,7 +321,9 @@ public class OneOfJsonConverter : global::Sy try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -222,7 +335,9 @@ public class OneOfJsonConverter : global::Sy try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -234,7 +349,9 @@ public class OneOfJsonConverter : global::Sy try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -246,7 +363,9 @@ public class OneOfJsonConverter : global::Sy try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -258,7 +377,9 @@ public class OneOfJsonConverter : global::Sy try { - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -270,7 +391,9 @@ public class OneOfJsonConverter : global::Sy try { - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); + value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -282,7 +405,9 @@ public class OneOfJsonConverter : global::Sy try { - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); + value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -294,7 +419,9 @@ public class OneOfJsonConverter : global::Sy try { - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); + value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -333,43 +460,62 @@ public override void Write( global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } else if (value.IsValue4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); } else if (value.IsValue5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); } else if (value.IsValue6) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeof(T6), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); } else if (value.IsValue7) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7, typeof(T7), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); } else if (value.IsValue8) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8, typeof(T8), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); } else if (value.IsValue9) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9, typeof(T9), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs index 457c63b5d..4427c578a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs @@ -12,7 +12,8 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -51,7 +52,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -64,7 +67,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +82,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +99,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso { try { - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,7 +112,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso try { - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +125,9 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso try { - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,19 +154,26 @@ public override void Write( global::tryAGI.OpenAI.Operation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsCreateFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile, typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); } else if (value.IsDeleteFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile, typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); } else if (value.IsUpdateFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile, typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs index f029cace4..80b59effd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs @@ -12,7 +12,8 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC { try { - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC try { - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.Outcome value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsTimeout) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); } else if (value.IsExit) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit, typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs index 55eba7254..e75988a07 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs @@ -12,7 +12,8 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -51,7 +52,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -64,7 +67,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +82,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +99,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,7 +112,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +125,9 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization try { - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,19 +154,26 @@ public override void Write( global::tryAGI.OpenAI.OutputContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsOutputText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); } else if (value.IsRefusal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); } else if (value.IsReasoningText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText, typeof(global::tryAGI.OpenAI.ReasoningTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs index ccddd85ba..374368dd0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs @@ -12,7 +12,8 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -237,7 +238,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -250,7 +253,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -263,7 +268,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -276,7 +283,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -289,7 +298,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -302,7 +313,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -315,7 +328,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -328,7 +343,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -341,7 +358,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -354,7 +373,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -367,7 +388,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -380,7 +403,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -393,7 +418,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -406,7 +433,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -419,7 +448,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -432,7 +463,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -445,7 +478,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -458,7 +493,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -471,7 +508,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -484,7 +523,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -497,7 +538,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -510,7 +553,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -523,7 +568,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -536,7 +583,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -549,7 +598,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -564,7 +615,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -575,7 +628,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -586,7 +641,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -597,7 +654,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -608,7 +667,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -619,7 +680,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -630,7 +693,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -641,7 +706,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -652,7 +719,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -663,7 +732,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -674,7 +745,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -685,7 +758,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -696,7 +771,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -707,7 +784,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -718,7 +797,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -729,7 +810,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -740,7 +823,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -751,7 +836,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -762,7 +849,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -773,7 +862,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -784,7 +875,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -795,7 +888,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -806,7 +901,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -817,7 +914,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -828,7 +927,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js try { - responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -899,107 +1000,158 @@ public override void Write( global::tryAGI.OpenAI.OutputItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message, typeof(global::tryAGI.OpenAI.OutputMessage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } else if (value.IsFileSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall, typeof(global::tryAGI.OpenAI.FileSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } else if (value.IsFunctionCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } else if (value.IsFunctionToolCallResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource!.Value, typeInfo); } else if (value.IsWebSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall, typeof(global::tryAGI.OpenAI.WebSearchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } else if (value.IsComputerCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall, typeof(global::tryAGI.OpenAI.ComputerToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } else if (value.IsComputerToolCallResource) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallResource, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallResource!.Value, typeInfo); } else if (value.IsReasoning) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning, typeof(global::tryAGI.OpenAI.ReasoningItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } else if (value.IsToolSearchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall, typeof(global::tryAGI.OpenAI.ToolSearchCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); } else if (value.IsToolSearchOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput, typeof(global::tryAGI.OpenAI.ToolSearchOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); } else if (value.IsCompaction) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction, typeof(global::tryAGI.OpenAI.CompactionBody), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); } else if (value.IsImageGenerationCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall, typeof(global::tryAGI.OpenAI.ImageGenToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } else if (value.IsCodeInterpreterCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall, typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } else if (value.IsLocalShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall, typeof(global::tryAGI.OpenAI.LocalShellToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); } else if (value.IsLocalShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput, typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); } else if (value.IsShellCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall, typeof(global::tryAGI.OpenAI.FunctionShellCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } else if (value.IsShellCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput, typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); } else if (value.IsApplyPatchCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall, typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } else if (value.IsApplyPatchCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput, typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.MCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.MCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsCustomToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs index f180f2c78..d0607b0a4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs @@ -12,7 +12,8 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -46,7 +47,9 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +62,9 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +79,9 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial { try { - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +92,9 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial try { - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +119,20 @@ public override void Write( global::tryAGI.OpenAI.OutputMessageContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsOutputText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText, typeof(global::tryAGI.OpenAI.OutputTextContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); } else if (value.IsRefusal) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeof(global::tryAGI.OpenAI.RefusalContent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs index 38a467c72..c1c41e506 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs @@ -12,7 +12,8 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -54,7 +55,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -67,7 +70,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +85,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +102,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ { try { - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +115,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ try { - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +128,9 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ try { - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,19 +157,26 @@ public override void Write( global::tryAGI.OpenAI.OutputVariant2Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeof(global::tryAGI.OpenAI.InputTextContentParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); } else if (value.IsInputImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage, typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); } else if (value.IsInputFile) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile, typeof(global::tryAGI.OpenAI.InputFileContentParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs index aad93b0d9..8a09a3a8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs @@ -12,7 +12,8 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali { try { - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali try { - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.OutputsVariant1Item value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsLogs) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs!, typeInfo); } else if (value.IsImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image, typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs index e6b8e1220..75ffdbdde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs @@ -12,7 +12,8 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); + pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); + pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); + pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -88,7 +95,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { - pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); + pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -99,7 +108,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial try { - pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); + pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +121,9 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial try { - pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); + pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -137,19 +150,26 @@ public override void Write( global::tryAGI.OpenAI.RealtimeAudioFormats value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsPcmAudioFormat) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmAudioFormat!, typeInfo); } else if (value.IsPcmuAudioFormat) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmuAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmuAudioFormat!, typeInfo); } else if (value.IsPcmaAudioFormat) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmaAudioFormat, typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmaAudioFormat!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs index 1c416f301..611a0d0fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs @@ -12,7 +12,8 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -100,7 +101,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,7 +116,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +131,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +146,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -152,7 +161,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -165,7 +176,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -178,7 +191,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -191,7 +206,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -204,7 +221,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -217,7 +236,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -230,7 +251,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -245,7 +268,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -256,7 +281,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -267,7 +294,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -278,7 +307,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -289,7 +320,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -300,7 +333,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -311,7 +346,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -322,7 +359,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -333,7 +372,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -344,7 +385,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -355,7 +398,9 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali try { - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -398,51 +443,74 @@ public override void Write( global::tryAGI.OpenAI.RealtimeClientEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsConversationItemCreate) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreate, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreate!, typeInfo); } else if (value.IsConversationItemDelete) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDelete, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDelete!, typeInfo); } else if (value.IsConversationItemRetrieve) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieve, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieve!, typeInfo); } else if (value.IsConversationItemTruncate) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncate, typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncate!, typeInfo); } else if (value.IsInputAudioBufferAppend) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferAppend, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferAppend!, typeInfo); } else if (value.IsInputAudioBufferClear) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferClear, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferClear!, typeInfo); } else if (value.IsOutputAudioBufferClear) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferClear, typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferClear!, typeInfo); } else if (value.IsInputAudioBufferCommit) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommit, typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommit!, typeInfo); } else if (value.IsResponseCancel) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCancel, typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCancel!, typeInfo); } else if (value.IsResponseCreate) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate, typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!, typeInfo); } else if (value.IsSessionUpdate) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate, typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs index daec50977..77be0431c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs @@ -12,7 +12,8 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -114,7 +115,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -127,7 +130,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -140,7 +145,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -153,7 +160,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -166,7 +175,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -179,7 +190,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -192,7 +205,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -205,7 +220,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -218,7 +235,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -233,7 +252,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se { try { - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -244,7 +265,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -255,7 +278,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -266,7 +291,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -277,7 +304,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -288,7 +317,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -299,7 +330,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -310,7 +343,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -321,7 +356,9 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se try { - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -360,43 +397,62 @@ public override void Write( global::tryAGI.OpenAI.RealtimeConversationItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsMessage1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); } else if (value.IsMessage2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); } else if (value.IsMessage3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message3, typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message3!, typeInfo); } else if (value.IsFunctionCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall, typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } else if (value.IsFunctionCallOutput) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput, typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); } else if (value.IsMcpApprovalResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse, typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); } else if (value.IsMcpListTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools, typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); } else if (value.IsMcpCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall, typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); } else if (value.IsMcpApprovalRequest) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest, typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs index 26767cf32..641dc4efe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs @@ -12,7 +12,8 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -388,7 +389,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -401,7 +404,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -414,7 +419,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -427,7 +434,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -440,7 +449,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -453,7 +464,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -466,7 +479,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -479,7 +494,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -492,7 +509,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -505,7 +524,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -518,7 +539,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -531,7 +554,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -544,7 +569,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -557,7 +584,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -570,7 +599,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -583,7 +614,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -596,7 +629,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -609,7 +644,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -622,7 +659,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -635,7 +674,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -648,7 +689,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -661,7 +704,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -674,7 +719,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -687,7 +734,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -700,7 +749,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -713,7 +764,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -726,7 +779,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -739,7 +794,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -752,7 +809,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -765,7 +824,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -778,7 +839,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -791,7 +854,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -804,7 +869,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -817,7 +884,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -830,7 +899,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -843,7 +914,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -856,7 +929,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -869,7 +944,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -882,7 +959,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -895,7 +974,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -908,7 +989,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -921,7 +1004,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -934,7 +1019,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -947,7 +1034,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -960,7 +1049,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -973,7 +1064,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -988,7 +1081,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali { try { - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -999,7 +1094,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1010,7 +1107,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1021,7 +1120,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1032,7 +1133,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1043,7 +1146,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1054,7 +1159,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1065,7 +1172,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1076,7 +1185,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1087,7 +1198,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1098,7 +1211,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1109,7 +1224,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1120,7 +1237,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1131,7 +1250,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1142,7 +1263,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1153,7 +1276,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1164,7 +1289,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1175,7 +1302,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1186,7 +1315,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1197,7 +1328,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1208,7 +1341,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1219,7 +1354,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1230,7 +1367,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1241,7 +1380,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1252,7 +1393,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1263,7 +1406,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1274,7 +1419,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1285,7 +1432,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1296,7 +1445,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1307,7 +1458,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1318,7 +1471,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1329,7 +1484,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1340,7 +1497,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1351,7 +1510,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1362,7 +1523,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1373,7 +1536,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1384,7 +1549,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1395,7 +1562,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1406,7 +1575,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1417,7 +1588,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1428,7 +1601,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1439,7 +1614,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1450,7 +1627,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1461,7 +1640,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1472,7 +1653,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1483,7 +1666,9 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1596,191 +1781,284 @@ public override void Write( global::tryAGI.OpenAI.RealtimeServerEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsConversationCreated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationCreated!, typeInfo); } else if (value.IsConversationItemCreated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreated!, typeInfo); } else if (value.IsConversationItemDeleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDeleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDeleted!, typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionCompleted!, typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionDelta!, typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionFailed!, typeInfo); } else if (value.IsConversationItemRetrieved) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieved, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieved!, typeInfo); } else if (value.IsConversationItemTruncated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncated, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncated!, typeInfo); } else if (value.IsError) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); } else if (value.IsInputAudioBufferCleared) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCleared, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCleared!, typeInfo); } else if (value.IsInputAudioBufferCommitted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommitted, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommitted!, typeInfo); } else if (value.IsInputAudioBufferDtmfEventReceived) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferDtmfEventReceived, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferDtmfEventReceived!, typeInfo); } else if (value.IsInputAudioBufferSpeechStarted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStarted, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStarted!, typeInfo); } else if (value.IsInputAudioBufferSpeechStopped) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStopped, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStopped!, typeInfo); } else if (value.IsRateLimitsUpdated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RateLimitsUpdated, typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RateLimitsUpdated!, typeInfo); } else if (value.IsResponseOutputAudioDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDelta!, typeInfo); } else if (value.IsResponseOutputAudioDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDone!, typeInfo); } else if (value.IsResponseOutputAudioTranscriptDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDelta!, typeInfo); } else if (value.IsResponseOutputAudioTranscriptDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDone!, typeInfo); } else if (value.IsResponseContentPartAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); } else if (value.IsResponseContentPartDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); } else if (value.IsResponseCreated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); } else if (value.IsResponseDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseDone!, typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); } else if (value.IsResponseOutputItemAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); } else if (value.IsResponseOutputItemDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); } else if (value.IsResponseOutputTextDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); } else if (value.IsResponseOutputTextDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); } else if (value.IsSessionCreated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated, typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated!, typeInfo); } else if (value.IsSessionUpdated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated, typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); } else if (value.IsOutputAudioBufferStarted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStarted, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStarted!, typeInfo); } else if (value.IsOutputAudioBufferStopped) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStopped, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStopped!, typeInfo); } else if (value.IsOutputAudioBufferCleared) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferCleared, typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferCleared!, typeInfo); } else if (value.IsConversationItemAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemAdded, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemAdded!, typeInfo); } else if (value.IsConversationItemDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDone!, typeInfo); } else if (value.IsInputAudioBufferTimeoutTriggered) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferTimeoutTriggered, typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferTimeoutTriggered!, typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionSegment) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionSegment, typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionSegment!, typeInfo); } else if (value.IsMcpListToolsInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsInProgress, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsInProgress!, typeInfo); } else if (value.IsMcpListToolsCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsCompleted!, typeInfo); } else if (value.IsMcpListToolsFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsFailed!, typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); } else if (value.IsResponseMcpCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); } else if (value.IsResponseMcpCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); } else if (value.IsResponseMcpCallFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed, typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs index 3063a6669..355034f23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs @@ -12,7 +12,8 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -43,7 +44,9 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +59,9 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); + retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +76,9 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +89,9 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ try { - retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); + retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,15 +116,20 @@ public override void Write( global::tryAGI.OpenAI.RealtimeTruncation value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsRetentionRatioTruncation) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetentionRatioTruncation, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetentionRatioTruncation!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 4bcc1c90f..7a791d49e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -12,7 +12,8 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -51,7 +52,9 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -64,7 +67,9 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,7 +84,9 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: { try { - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +97,9 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: try { - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,15 +124,20 @@ public override void Write( global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsServerVad) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ServerVad, typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ServerVad!, typeInfo); } else if (value.IsSemanticVad) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SemanticVad, typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SemanticVad!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs index fddeffaec..99e77bbfa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs @@ -12,7 +12,8 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -76,7 +77,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +92,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +107,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +124,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { - modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -128,7 +137,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json try { - properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +150,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json try { - responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -166,19 +179,26 @@ public override void Write( global::tryAGI.OpenAI.Response value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsModelProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!, typeInfo); } else if (value.IsProperties) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); } else if (value.IsResponseVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseVariant3, typeof(global::tryAGI.OpenAI.ResponseVariant3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseVariant3!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs index f52f0cc78..457366a98 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs @@ -12,7 +12,8 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +78,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -88,7 +95,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -99,7 +108,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +121,9 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -137,19 +150,26 @@ public override void Write( global::tryAGI.OpenAI.ResponseFormat value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsJsonSchema) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); } else if (value.IsJsonObject) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs index dc850ac85..8d2715169 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs @@ -12,7 +12,8 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -434,7 +435,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); + responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -447,7 +450,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); + responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -460,7 +465,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); + responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -473,7 +480,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); + responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -486,7 +495,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); + responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -499,7 +510,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); + responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -512,7 +525,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); + responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -525,7 +540,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); + responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -538,7 +555,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); + responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -551,7 +570,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); + responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -564,7 +585,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -577,7 +600,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -590,7 +615,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -603,7 +630,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -616,7 +645,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); + responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -629,7 +660,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); + responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -642,7 +675,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); + responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -655,7 +690,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -668,7 +705,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -681,7 +720,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); + responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -694,7 +735,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); + responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -707,7 +750,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); + responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -720,7 +765,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -733,7 +780,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -746,7 +795,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); + responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -759,7 +810,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); + responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -772,7 +825,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); + responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -785,7 +840,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); + responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -798,7 +855,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -811,7 +870,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -824,7 +885,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); + responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -837,7 +900,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); + responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -850,7 +915,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -863,7 +930,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -876,7 +945,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); + responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -889,7 +960,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); + responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -902,7 +975,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); + responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -915,7 +990,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); + responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -928,7 +1005,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); + responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -941,7 +1020,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); + responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -954,7 +1035,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); + responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -967,7 +1050,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -980,7 +1065,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -993,7 +1080,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1006,7 +1095,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1019,7 +1110,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1032,7 +1125,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); + responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1045,7 +1140,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); + responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1058,7 +1155,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); + responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1071,7 +1170,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); + responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1084,7 +1185,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); + responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1097,7 +1200,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); + responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1110,7 +1215,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); + responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1125,7 +1232,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { try { - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); + responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1136,7 +1245,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); + responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1147,7 +1258,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); + responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1158,7 +1271,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); + responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1169,7 +1284,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); + responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1180,7 +1297,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); + responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1191,7 +1310,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); + responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1202,7 +1323,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); + responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1213,7 +1336,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); + responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1224,7 +1349,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); + responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1235,7 +1362,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1246,7 +1375,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1257,7 +1388,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1268,7 +1401,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1279,7 +1414,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); + responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1290,7 +1427,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); + responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1301,7 +1440,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); + responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1312,7 +1453,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1323,7 +1466,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1334,7 +1479,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); + responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1345,7 +1492,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); + responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1356,7 +1505,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); + responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1367,7 +1518,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1378,7 +1531,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1389,7 +1544,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); + responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1400,7 +1557,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); + responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1411,7 +1570,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); + responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1422,7 +1583,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); + responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1433,7 +1596,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1444,7 +1609,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1455,7 +1622,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); + responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1466,7 +1635,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); + responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1477,7 +1648,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1488,7 +1661,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1499,7 +1674,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); + responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1510,7 +1687,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); + responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1521,7 +1700,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); + responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1532,7 +1713,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); + responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1543,7 +1726,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); + responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1554,7 +1739,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); + responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1565,7 +1752,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); + responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1576,7 +1765,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1587,7 +1778,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1598,7 +1791,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1609,7 +1804,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1620,7 +1817,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1631,7 +1830,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); + responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1642,7 +1843,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); + responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1653,7 +1856,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); + responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1664,7 +1869,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); + responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1675,7 +1882,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); + responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1686,7 +1895,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); + responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1697,7 +1908,9 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali try { - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); + responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1824,219 +2037,326 @@ public override void Write( global::tryAGI.OpenAI.ResponseStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResponseAudioDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDelta, typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDelta!, typeInfo); } else if (value.IsResponseAudioDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDone, typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDone!, typeInfo); } else if (value.IsResponseAudioTranscriptDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDelta, typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDelta!, typeInfo); } else if (value.IsResponseAudioTranscriptDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDone, typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDone!, typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDelta, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDelta!, typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDone, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDone!, typeInfo); } else if (value.IsResponseCodeInterpreterCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCompleted, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCompleted!, typeInfo); } else if (value.IsResponseCodeInterpreterCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInProgress, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInProgress!, typeInfo); } else if (value.IsResponseCodeInterpreterCallInterpreting) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInterpreting, typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInterpreting!, typeInfo); } else if (value.IsResponseCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompleted, typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompleted!, typeInfo); } else if (value.IsResponseContentPartAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded, typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); } else if (value.IsResponseContentPartDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone, typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); } else if (value.IsResponseCreated) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated, typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); } else if (value.IsError) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); } else if (value.IsResponseFileSearchCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallCompleted, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallCompleted!, typeInfo); } else if (value.IsResponseFileSearchCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInProgress, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInProgress!, typeInfo); } else if (value.IsResponseFileSearchCallSearching) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallSearching, typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallSearching!, typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta, typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone, typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); } else if (value.IsResponseInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInProgress, typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInProgress!, typeInfo); } else if (value.IsResponseFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFailed, typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFailed!, typeInfo); } else if (value.IsResponseIncomplete) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseIncomplete, typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseIncomplete!, typeInfo); } else if (value.IsResponseOutputItemAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded, typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); } else if (value.IsResponseOutputItemDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone, typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); } else if (value.IsResponseReasoningSummaryPartAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartAdded, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartAdded!, typeInfo); } else if (value.IsResponseReasoningSummaryPartDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartDone, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartDone!, typeInfo); } else if (value.IsResponseReasoningSummaryTextDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDelta, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDelta!, typeInfo); } else if (value.IsResponseReasoningSummaryTextDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDone, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDone!, typeInfo); } else if (value.IsResponseReasoningTextDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDelta, typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDelta!, typeInfo); } else if (value.IsResponseReasoningTextDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDone, typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDone!, typeInfo); } else if (value.IsResponseRefusalDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDelta, typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDelta!, typeInfo); } else if (value.IsResponseRefusalDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDone, typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDone!, typeInfo); } else if (value.IsResponseOutputTextDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta, typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); } else if (value.IsResponseOutputTextDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone, typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); } else if (value.IsResponseWebSearchCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallCompleted, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallCompleted!, typeInfo); } else if (value.IsResponseWebSearchCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInProgress, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInProgress!, typeInfo); } else if (value.IsResponseWebSearchCallSearching) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallSearching, typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallSearching!, typeInfo); } else if (value.IsResponseImageGenerationCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallCompleted, typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallCompleted!, typeInfo); } else if (value.IsResponseImageGenerationCallGenerating) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallGenerating, typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallGenerating!, typeInfo); } else if (value.IsResponseImageGenerationCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallInProgress, typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallInProgress!, typeInfo); } else if (value.IsResponseImageGenerationCallPartialImage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallPartialImage, typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallPartialImage!, typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta, typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone, typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); } else if (value.IsResponseMcpCallCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted, typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); } else if (value.IsResponseMcpCallFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed, typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); } else if (value.IsResponseMcpCallInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress, typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); } else if (value.IsResponseMcpListToolsCompleted) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsCompleted, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsCompleted!, typeInfo); } else if (value.IsResponseMcpListToolsFailed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsFailed, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsFailed!, typeInfo); } else if (value.IsResponseMcpListToolsInProgress) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInProgress, typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInProgress!, typeInfo); } else if (value.IsResponseOutputTextAnnotationAdded) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationAdded, typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationAdded!, typeInfo); } else if (value.IsResponseQueued) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseQueued, typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseQueued!, typeInfo); } else if (value.IsResponseCustomToolCallInputDelta) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDelta, typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDelta!, typeInfo); } else if (value.IsResponseCustomToolCallInputDone) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDone, typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDone!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs index cfc44118c..792a0cb08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEvent.g.cs @@ -12,7 +12,8 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,6 +28,16 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), 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 __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -39,7 +50,9 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial try { - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -55,7 +68,9 @@ public class ResponsesClientEventJsonConverter : global::System.Text.Json.Serial try { - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,11 +93,14 @@ public override void Write( global::tryAGI.OpenAI.ResponsesClientEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResponseCreate) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate, typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs index 67486fbff..d7c5c4dbe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs @@ -12,7 +12,8 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -41,7 +42,9 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,7 +57,9 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +74,9 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { - responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +87,9 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te try { - createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,15 +114,20 @@ public override void Write( global::tryAGI.OpenAI.ResponsesClientEventResponseCreate value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResponsesClientEventResponseCreateVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesClientEventResponseCreateVariant1, typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesClientEventResponseCreateVariant1!, typeInfo); } else if (value.IsCreateResponse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponse, typeof(global::tryAGI.OpenAI.CreateResponse), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponse!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs index 3c72ad7ab..cb1af58f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesServerEvent.g.cs @@ -12,7 +12,8 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,6 +28,16 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), 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 __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -39,7 +50,9 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial try { - responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); + responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -55,7 +68,9 @@ public class ResponsesServerEventJsonConverter : global::System.Text.Json.Serial try { - responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); + responseStream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,11 +93,14 @@ public override void Write( global::tryAGI.OpenAI.ResponsesServerEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsResponseStream) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseStream, typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseStreamEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseStream!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs index 57a891f62..a3e74fb49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs @@ -12,7 +12,8 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -69,7 +70,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +85,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +100,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +115,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -121,7 +130,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -134,7 +145,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,7 +160,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +177,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { - runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -173,7 +190,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -184,7 +203,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -195,7 +216,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -206,7 +229,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -217,7 +242,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -228,7 +255,9 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ try { - runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -263,35 +292,50 @@ public override void Write( global::tryAGI.OpenAI.RunStepStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsRunStepStreamEventVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant1!, typeInfo); } else if (value.IsRunStepStreamEventVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant2!, typeInfo); } else if (value.IsRunStepStreamEventVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant3!, typeInfo); } else if (value.IsRunStepStreamEventVariant4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant4!, typeInfo); } else if (value.IsRunStepStreamEventVariant5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant5!, typeInfo); } else if (value.IsRunStepStreamEventVariant6) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant6!, typeInfo); } else if (value.IsRunStepStreamEventVariant7) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant7!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs index 28159deab..b809d9346 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs @@ -12,7 +12,8 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -84,7 +85,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -97,7 +100,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +115,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,7 +130,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -136,7 +145,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -149,7 +160,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +175,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -175,7 +190,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -188,7 +205,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -201,7 +220,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -216,7 +237,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { - runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -227,7 +250,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -238,7 +263,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -249,7 +276,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -260,7 +289,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -271,7 +302,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -282,7 +315,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -293,7 +328,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -304,7 +341,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -315,7 +354,9 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio try { - runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -356,47 +397,68 @@ public override void Write( global::tryAGI.OpenAI.RunStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsRunStreamEventVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant1!, typeInfo); } else if (value.IsRunStreamEventVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant2!, typeInfo); } else if (value.IsRunStreamEventVariant3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant3!, typeInfo); } else if (value.IsRunStreamEventVariant4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant4!, typeInfo); } else if (value.IsRunStreamEventVariant5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant5!, typeInfo); } else if (value.IsRunStreamEventVariant6) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant6!, typeInfo); } else if (value.IsRunStreamEventVariant7) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant7!, typeInfo); } else if (value.IsRunStreamEventVariant8) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant8, typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant8!, typeInfo); } else if (value.IsRunStreamEventVariant9) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant9, typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant9!, typeInfo); } else if (value.IsRunStreamEventVariant10) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant10, typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant10!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs index cde2f6ec9..a5a8c626c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs @@ -12,7 +12,8 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -59,7 +60,9 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); + realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +75,9 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); + transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +92,9 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json { try { - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); + realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +105,9 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json try { - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); + transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,15 +132,20 @@ public override void Write( global::tryAGI.OpenAI.Session2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsRealtime) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Realtime, typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Realtime!, typeInfo); } else if (value.IsTranscription) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Transcription, typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Transcription!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs index afa343360..629708d17 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs @@ -12,7 +12,8 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +93,9 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js try { - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,15 +120,20 @@ public override void Write( global::tryAGI.OpenAI.SkillsItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsSkillReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference, typeof(global::tryAGI.OpenAI.SkillReferenceParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); } else if (value.IsInline) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline, typeof(global::tryAGI.OpenAI.InlineSkillParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs index 1d0122fd1..e061ddde5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs @@ -12,7 +12,8 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -47,7 +48,9 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +63,9 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +80,9 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J { try { - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +93,9 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J try { - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,15 +120,20 @@ public override void Write( global::tryAGI.OpenAI.SkillsItem2 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsSkillReference) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference, typeof(global::tryAGI.OpenAI.SkillReferenceParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); } else if (value.IsInline) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline, typeof(global::tryAGI.OpenAI.InlineSkillParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs index f1253cdb0..f930d0f0e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs @@ -12,7 +12,8 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -48,7 +49,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); + active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +64,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); + locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +79,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); + closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +96,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); + active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,7 +109,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo try { - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); + locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,7 +122,9 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo try { - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); + closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -138,19 +151,26 @@ public override void Write( global::tryAGI.OpenAI.Status value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsActive) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Active, typeof(global::tryAGI.OpenAI.ActiveStatus), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Active!, typeInfo); } else if (value.IsLocked) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Locked, typeof(global::tryAGI.OpenAI.LockedStatus), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Locked!, typeInfo); } else if (value.IsClosed) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Closed, typeof(global::tryAGI.OpenAI.ClosedStatus), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Closed!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs index a2fdcff5f..2332d73bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs @@ -12,7 +12,8 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa } 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; } @@ -42,7 +63,9 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa try { - stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options); + 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}"); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.StopConfiguration value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsStopConfigurationVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant1, typeof(string), options); + 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.StopConfigurationVariant1!, typeInfo); } else if (value.IsStopConfigurationVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant2, typeof(global::System.Collections.Generic.IList), options); + 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.StopConfigurationVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs index bec5465bf..ea12e7e5f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs @@ -12,7 +12,8 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -50,7 +51,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +66,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +81,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +98,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +111,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. try { - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,7 +124,9 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. try { - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -140,19 +153,26 @@ public override void Write( global::tryAGI.OpenAI.TextResponseFormatConfiguration value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsText) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); } else if (value.IsJsonSchema) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); } else if (value.IsJsonObject) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs index d86e6d425..f4b3f11f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs @@ -12,7 +12,8 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -96,7 +97,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); + chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,7 +112,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); + chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -122,7 +127,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); + chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -135,7 +142,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); + chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -148,7 +157,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); + chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -161,7 +172,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); + chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -176,7 +189,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js { try { - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); + chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -187,7 +202,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); + chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -198,7 +215,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); + chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -209,7 +228,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); + chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -220,7 +241,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); + chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -231,7 +254,9 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js try { - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); + chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -264,31 +289,44 @@ public override void Write( global::tryAGI.OpenAI.ThreadItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsChatkitUserMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitUserMessage, typeof(global::tryAGI.OpenAI.UserMessageItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitUserMessage!, typeInfo); } else if (value.IsChatkitAssistantMessage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitAssistantMessage, typeof(global::tryAGI.OpenAI.AssistantMessageItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitAssistantMessage!, typeInfo); } else if (value.IsChatkitWidget) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitWidget, typeof(global::tryAGI.OpenAI.WidgetMessageItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitWidget!, typeInfo); } else if (value.IsChatkitClientToolCall) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitClientToolCall, typeof(global::tryAGI.OpenAI.ClientToolCallItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitClientToolCall!, typeInfo); } else if (value.IsChatkitTask) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTask, typeof(global::tryAGI.OpenAI.TaskItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTask!, typeInfo); } else if (value.IsChatkitTaskGroup) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTaskGroup, typeof(global::tryAGI.OpenAI.TaskGroupItem), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatkitTaskGroup!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs index 409ad6b0e..be6a5645c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs @@ -12,7 +12,8 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -40,7 +41,9 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { try { - threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -55,7 +58,9 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { try { - threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,11 +83,14 @@ public override void Write( global::tryAGI.OpenAI.ThreadStreamEvent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsThreadStreamEventVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadStreamEventVariant1, typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadStreamEventVariant1!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs index ee8b93c66..160e74a6b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs @@ -12,7 +12,8 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -144,7 +145,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -157,7 +160,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -170,7 +175,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -183,7 +190,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -196,7 +205,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -209,7 +220,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -222,7 +235,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -235,7 +250,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -248,7 +265,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -261,7 +280,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -274,7 +295,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -287,7 +310,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -300,7 +325,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -313,7 +340,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -326,7 +355,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -341,7 +372,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -352,7 +385,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -363,7 +398,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -374,7 +411,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -385,7 +424,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -396,7 +437,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -407,7 +450,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -418,7 +463,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -429,7 +476,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -440,7 +489,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -451,7 +502,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -462,7 +515,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); + @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -473,7 +528,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -484,7 +541,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -495,7 +554,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv try { - applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -546,67 +607,98 @@ public override void Write( global::tryAGI.OpenAI.Tool value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.FunctionTool), options); + 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.Function!, typeInfo); } else if (value.IsFileSearch) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeof(global::tryAGI.OpenAI.FileSearchTool), options); + 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.FileSearch!, typeInfo); } else if (value.IsComputer) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer, typeof(global::tryAGI.OpenAI.ComputerTool), options); + 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.Computer!, typeInfo); } else if (value.IsComputerUsePreview) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUsePreview, typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options); + 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.ComputerUsePreview!, typeInfo); } else if (value.IsWebSearch) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch, typeof(global::tryAGI.OpenAI.WebSearchTool), options); + 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.WebSearch!, typeInfo); } else if (value.IsMcp) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp, typeof(global::tryAGI.OpenAI.MCPTool), options); + 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.Mcp!, typeInfo); } else if (value.IsCodeInterpreter) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options); + 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.CodeInterpreter!, typeInfo); } else if (value.IsImageGeneration) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGeneration, typeof(global::tryAGI.OpenAI.ImageGenTool), options); + 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.ImageGeneration!, typeInfo); } else if (value.IsLocalShell) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShell, typeof(global::tryAGI.OpenAI.LocalShellToolParam), options); + 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.LocalShell!, typeInfo); } else if (value.IsShell) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shell, typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options); + 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.Shell!, typeInfo); } else if (value.IsCustom) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.CustomToolParam), options); + 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.Custom!, typeInfo); } else if (value.IsNamespace) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Namespace, typeof(global::tryAGI.OpenAI.NamespaceToolParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Namespace!, typeInfo); } else if (value.IsToolSearch) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch, typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options); + 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.ToolSearch!, typeInfo); } else if (value.IsWebSearchPreview) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchPreview, typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options); + 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.WebSearchPreview!, typeInfo); } else if (value.IsApplyPatch) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatch, typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options); + 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.ApplyPatch!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs index 33028ebb9..1ee1ad310 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs @@ -12,7 +12,8 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -71,7 +72,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +87,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -97,7 +102,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); + hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +117,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); + functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,7 +132,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); + mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -136,7 +147,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -149,7 +162,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); + specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +177,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); + specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -177,7 +194,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { - toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); + toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -188,7 +207,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); + allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -199,7 +220,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); + hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -210,7 +233,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); + functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -221,7 +246,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); + mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -232,7 +259,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -243,7 +272,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); + specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -254,7 +285,9 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati try { - specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); + specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -291,39 +324,56 @@ public override void Write( global::tryAGI.OpenAI.ToolChoiceParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsToolChoiceMode) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode, typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode!.Value, typeInfo); } else if (value.IsAllowedTools) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools, typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools!, typeInfo); } else if (value.IsHostedTool) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HostedTool, typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.HostedTool!, typeInfo); } else if (value.IsFunctionTool) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionTool, typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionTool!, typeInfo); } else if (value.IsMcpTool) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpTool, typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpTool!, typeInfo); } else if (value.IsCustomTool) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool, typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); } else if (value.IsSpecificApplyPatchToolChoice) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificApplyPatchToolChoice, typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificApplyPatchToolChoice!, typeInfo); } else if (value.IsSpecificShellToolChoice) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificShellToolChoice, typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificShellToolChoice!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs index b046f2901..04361d867 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs @@ -12,7 +12,8 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -51,7 +52,9 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -64,7 +67,9 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -79,7 +84,9 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J { try { - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +97,9 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J try { - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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) { @@ -115,15 +124,20 @@ public override void Write( global::tryAGI.OpenAI.ToolsItem13 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::tryAGI.OpenAI.FunctionToolParam), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); } else if (value.IsCustom) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeof(global::tryAGI.OpenAI.CustomToolParam), options); + 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.Custom!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs index 106ab02b2..1b2368426 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs @@ -12,7 +12,8 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -44,7 +45,9 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +60,9 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +77,9 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +90,9 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js try { - vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,15 +117,20 @@ public override void Write( global::tryAGI.OpenAI.TranscriptionChunkingStrategy value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsVadConfig) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VadConfig, typeof(global::tryAGI.OpenAI.VadConfig), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VadConfig!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs index 64f5a23ee..27aac2ee2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs @@ -12,7 +12,8 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js } 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::tryAGI.OpenAI.VideoModelEnum), 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; } @@ -42,7 +63,9 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.VideoModel value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsVideoModelVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoModelVariant1, typeof(string), options); + 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.VideoModelVariant1!, typeInfo); } else if (value.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.VideoModelEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs index a807c6b01..8ee9de8b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs @@ -12,7 +12,8 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -41,7 +42,9 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,7 +57,9 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +74,9 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { - shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +87,9 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria try { - voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,15 +114,20 @@ public override void Write( global::tryAGI.OpenAI.VoiceIdsOrCustomVoice value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsShared) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared, typeof(global::tryAGI.OpenAI.VoiceIdsShared), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); } else if (value.IsVoiceIdsOrCustomVoiceVariant2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2, typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs index 9c0a22d8e..387edda7d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs @@ -12,7 +12,8 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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); @@ -27,7 +28,27 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio } 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::tryAGI.OpenAI.VoiceIdsSharedEnum), 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; } @@ -42,7 +63,9 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -57,7 +80,9 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +98,9 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + 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}"); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +112,9 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio try { - @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,15 +139,20 @@ public override void Write( global::tryAGI.OpenAI.VoiceIdsShared value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsVoiceIdsSharedVariant1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsSharedVariant1, typeof(string), options); + 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.VoiceIdsSharedVariant1!, typeInfo); } else if (value.IsEnum) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum, typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs index f31e8ce0f..52595160c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs @@ -12,7 +12,8 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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(); @@ -52,7 +53,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +68,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +83,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +100,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser { try { - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,7 +113,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser try { - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +126,9 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser try { - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -142,19 +155,26 @@ public override void Write( global::tryAGI.OpenAI.WebSearchToolCallAction value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(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.IsSearch) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search, typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo); } else if (value.IsOpenPage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage, typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage!, typeInfo); } else if (value.IsFindInPage) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage, typeof(global::tryAGI.OpenAI.WebSearchActionFind), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage!, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs new file mode 100644 index 000000000..af996db8b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -0,0 +1,7693 @@ + +#nullable enable + +#pragma warning disable CS0618 // Type or member is obsolete +#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant + +namespace tryAGI.OpenAI +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CertificateObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CertificateObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CostsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CostsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FilePathTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FilePathTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchRankerJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchRankerNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhaseJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhaseNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadPartObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.IncludeEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.IncludeEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageRoleNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TextContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TextContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageDetailJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageDetailNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhase2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessagePhase2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClickParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClickParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DragParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DragParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MoveParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MoveParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TypeParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TypeParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WaitParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WaitParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SearchContextSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SearchContextSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SearchContentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SearchContentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DetailEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DetailEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2NullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrderEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OrderEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoSecondsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoSecondsNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoContentVariantJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoContentVariantNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TruncationEnumJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TruncationEnumNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AttachmentTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AttachmentTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListContainersOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListContainersOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRolesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRolesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPartJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPartJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputsVariant1ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FiltersItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.Content5JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillsItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateModelResponsePropertiesJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolCallResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedConversationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderLabelModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderPythonJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderScoreModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderStringCheckJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarityJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EvalItemContentItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsCompactionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponsesServerEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.Filters2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicy2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NetworkPolicy3JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.SkillsItem2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant1JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.Format2JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolsItem13JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant12JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutcomeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputVariant2ItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationsItem3JsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.StatusJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolFilter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter), + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.JsonSerializerContextTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AddUploadPartRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeyOwner))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApiKeyList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssignedRoleDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectObject), TypeInfoPropertyName = "AssistantObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAssistantToolsCodeAssistantToolsFileSearchAssistantToolsFunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsCode))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantStreamEvent), TypeInfoPropertyName = "AssistantStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), TypeInfoPropertyName = "ThreadStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEvent), TypeInfoPropertyName = "RunStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), TypeInfoPropertyName = "RunStepStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEvent), TypeInfoPropertyName = "MessageStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantSupportedModels), TypeInfoPropertyName = "AssistantSupportedModels2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsCodeType), TypeInfoPropertyName = "AssistantToolsCodeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchType), TypeInfoPropertyName = "AssistantToolsFileSearchType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchRankingOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType), TypeInfoPropertyName = "AssistantToolsFileSearchTypeOnlyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantToolsFunctionType), TypeInfoPropertyName = "AssistantToolsFunctionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), TypeInfoPropertyName = "AssistantsApiResponseFormatOptionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOption), TypeInfoPropertyName = "AssistantsApiToolChoiceOption2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), TypeInfoPropertyName = "AssistantsApiToolChoiceOptionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoiceType), TypeInfoPropertyName = "AssistantsNamedToolChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioResponseFormat), TypeInfoPropertyName = "AudioResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioTranscription))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringAudioTranscriptionModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AudioTranscriptionModel), TypeInfoPropertyName = "AudioTranscriptionModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLog))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogEventType), TypeInfoPropertyName = "AuditLogEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyCreatedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogApiKeyDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogExternalKeyRegistered))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogExternalKeyRemoved))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupCreatedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogGroupDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogScimEnabled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogScimDisabled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteSent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteSentData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteAccepted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogInviteDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivatedConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivatedConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogLoginFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogLogoutFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogOrganizationUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectCreatedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectArchived))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogProjectDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRateLimitDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleAssignmentCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogRoleAssignmentDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogServiceAccountDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserAddedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogUserDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificateDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesActivated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesDeactivated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorType), TypeInfoPropertyName = "AuditLogActorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorSession))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorApiKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorApiKeyType), TypeInfoPropertyName = "AuditLogActorApiKeyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AuditLogActorServiceAccount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType), TypeInfoPropertyName = "AutoChunkingStrategyRequestParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Batch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchObject), TypeInfoPropertyName = "BatchObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchErrors))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchErrorsDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchStatus), TypeInfoPropertyName = "BatchStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchRequestCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsageInputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchUsageOutputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchFileExpirationAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor), TypeInfoPropertyName = "BatchFileExpirationAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Certificate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CertificateObject), TypeInfoPropertyName = "CertificateObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CertificateCertificateDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedTools))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode), TypeInfoPropertyName = "ChatCompletionAllowedToolsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType), TypeInfoPropertyName = "ChatCompletionAllowedToolsChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionDeletedObject), TypeInfoPropertyName = "ChatCompletionDeletedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionFunctionCallOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionFunctions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionParameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionListObject), TypeInfoPropertyName = "ChatCompletionListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType), TypeInfoPropertyName = "ChatCompletionMessageCustomToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListObject), TypeInfoPropertyName = "ChatCompletionMessageListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfChatCompletionResponseMessageChatCompletionMessageListDataItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfChatCompletionRequestMessageContentPartTextChatCompletionRequestMessageContentPartImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType), TypeInfoPropertyName = "ChatCompletionMessageToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType), TypeInfoPropertyName = "ChatCompletionMessageToolCallChunkType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem), TypeInfoPropertyName = "ChatCompletionMessageToolCallsItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item), TypeInfoPropertyName = "ChatCompletionModalitiesVariant1Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType), TypeInfoPropertyName = "ChatCompletionNamedToolChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType), TypeInfoPropertyName = "ChatCompletionNamedToolChoiceCustomType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestMessageContentPartText2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole), TypeInfoPropertyName = "ChatCompletionRequestDeveloperMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole), TypeInfoPropertyName = "ChatCompletionRequestFunctionMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessage), TypeInfoPropertyName = "ChatCompletionRequestMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartAudioInputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartImageImageUrlDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartRefusalType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestSystemMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestSystemMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole), TypeInfoPropertyName = "ChatCompletionRequestSystemMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole), TypeInfoPropertyName = "ChatCompletionRequestToolMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestToolMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestToolMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestUserMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart), TypeInfoPropertyName = "ChatCompletionRequestUserMessageContentPart2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole), TypeInfoPropertyName = "ChatCompletionRequestUserMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType), TypeInfoPropertyName = "ChatCompletionResponseMessageAnnotationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageRole), TypeInfoPropertyName = "ChatCompletionResponseMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRole), TypeInfoPropertyName = "ChatCompletionRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole), TypeInfoPropertyName = "ChatCompletionStreamResponseDeltaRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTokenLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolType), TypeInfoPropertyName = "ChatCompletionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOption), TypeInfoPropertyName = "ChatCompletionToolChoiceOption2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), TypeInfoPropertyName = "ChatCompletionToolChoiceOptionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParam), TypeInfoPropertyName = "ChunkingStrategyRequestParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutputType), TypeInfoPropertyName = "CodeInterpreterFileOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutputFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTextOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTextOutputType), TypeInfoPropertyName = "CodeInterpreterTextOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolType), TypeInfoPropertyName = "CodeInterpreterToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringAutoCodeInterpreterToolParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallType), TypeInfoPropertyName = "CodeInterpreterToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallStatus), TypeInfoPropertyName = "CodeInterpreterToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputsVariant1Item), TypeInfoPropertyName = "OutputsVariant1Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilterType), TypeInfoPropertyName = "ComparisonFilterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>), TypeInfoPropertyName = "OneOfStringDoubleBooleanIListOneOfStringDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompleteUploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilterType), TypeInfoPropertyName = "CompoundFilterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FiltersItem), TypeInfoPropertyName = "FiltersItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerAction), TypeInfoPropertyName = "ComputerAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoubleClickAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DragParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.KeyPressAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MoveParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScreenshotParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScrollParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TypeParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WaitParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImageType), TypeInfoPropertyName = "ComputerScreenshotImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallType), TypeInfoPropertyName = "ComputerToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallSafetyCheckParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallStatus), TypeInfoPropertyName = "ComputerToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputType), TypeInfoPropertyName = "ComputerToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputStatus), TypeInfoPropertyName = "ComputerToolCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), TypeInfoPropertyName = "ComputerToolCallOutputResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputStatus), TypeInfoPropertyName = "ComputerCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileListResourceObject), TypeInfoPropertyName = "ContainerFileListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerListResourceObject), TypeInfoPropertyName = "ContainerListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceExpiresAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor), TypeInfoPropertyName = "ContainerResourceExpiresAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceMemoryLimit), TypeInfoPropertyName = "ContainerResourceMemoryLimit2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceNetworkPolicy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType), TypeInfoPropertyName = "ContainerResourceNetworkPolicyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Content5), TypeInfoPropertyName = "Content52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContent), TypeInfoPropertyName = "InputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContent), TypeInfoPropertyName = "OutputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItem), TypeInfoPropertyName = "ConversationItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Message))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), TypeInfoPropertyName = "FunctionToolCallResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), TypeInfoPropertyName = "FunctionToolCallOutputResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListTools))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemListObject), TypeInfoPropertyName = "ConversationItemListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationParam), TypeInfoPropertyName = "ConversationParam2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationParam2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultObject), TypeInfoPropertyName = "CostsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CostsResultAmount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringAssistantSupportedModels2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningEffortEnum))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequest), TypeInfoPropertyName = "CreateChatCompletionRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), TypeInfoPropertyName = "CreateModelResponseProperties2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsShared), TypeInfoPropertyName = "ModelIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VerbosityEnum))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSize), TypeInfoPropertyName = "WebSearchContextSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormat), TypeInfoPropertyName = "ResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice), TypeInfoPropertyName = "VoiceIdsOrCustomVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2AudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StopConfiguration), TypeInfoPropertyName = "StopConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfChatCompletionToolCustomToolChatCompletions2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateChatCompletionRequestVariant2FunctionCallChatCompletionFunctionCallOption2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2FunctionCall2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason), TypeInfoPropertyName = "CreateChatCompletionResponseChoiceFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierEnum))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseObject), TypeInfoPropertyName = "CreateChatCompletionResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason), TypeInfoPropertyName = "CreateChatCompletionStreamResponseChoiceFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject), TypeInfoPropertyName = "CreateChatCompletionStreamResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateCompletionRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionRequestModel), TypeInfoPropertyName = "CreateCompletionRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), TypeInfoPropertyName = "OneOfStringIListStringIListInt32IListIListInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason), TypeInfoPropertyName = "CreateCompletionResponseChoiceFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateCompletionResponseObject), TypeInfoPropertyName = "CreateCompletionResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor), TypeInfoPropertyName = "CreateContainerBodyExpiresAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem), TypeInfoPropertyName = "SkillsItem2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit), TypeInfoPropertyName = "CreateContainerBodyMemoryLimit2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy), TypeInfoPropertyName = "NetworkPolicy2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerFileBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateEmbeddingRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequestModel), TypeInfoPropertyName = "CreateEmbeddingRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat), TypeInfoPropertyName = "CreateEmbeddingRequestEncodingFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Embedding))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseObject), TypeInfoPropertyName = "CreateEmbeddingResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessageEvalItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfResponseFormatTextResponseFormatJsonSchemaResponseFormatJsonObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalStoredCompletionsSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType), TypeInfoPropertyName = "CreateEvalCustomDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalItem), TypeInfoPropertyName = "CreateEvalItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType), TypeInfoPropertyName = "CreateEvalJsonlRunDataSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGraderType), TypeInfoPropertyName = "CreateEvalLabelModelGraderType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType), TypeInfoPropertyName = "CreateEvalLogsDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalCustomDataSourceConfigCreateEvalLogsDataSourceConfigCreateEvalStoredCompletionsDataSourceConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalLabelModelGraderEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), TypeInfoPropertyName = "EvalGraderStringCheck2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), TypeInfoPropertyName = "EvalGraderTextSimilarity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderPython), TypeInfoPropertyName = "EvalGraderPython2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), TypeInfoPropertyName = "EvalGraderScoreModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItemEvalItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Tool), TypeInfoPropertyName = "Tool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatConfiguration), TypeInfoPropertyName = "TextResponseFormatConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalResponsesSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalResponsesSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalJsonlRunDataSourceCreateEvalCompletionsRunDataSourceCreateEvalResponsesRunDataSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "CreateEvalStoredCompletionsDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFileRequestPurpose), TypeInfoPropertyName = "CreateFileRequestPurpose2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateFineTuningJobRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestModel), TypeInfoPropertyName = "CreateFineTuningJobRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersBatchSizeInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersBatchSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersLearningRateMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersLearningRateMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersNEpochsInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersNEpochs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType), TypeInfoPropertyName = "CreateFineTuningJobRequestIntegrationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneMethod))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateGroupBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateGroupUserBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>), TypeInfoPropertyName = "AnyOfByteArrayIListByteArray2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestBackground), TypeInfoPropertyName = "CreateImageEditRequestBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageEditRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestModel), TypeInfoPropertyName = "CreateImageEditRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestSize), TypeInfoPropertyName = "CreateImageEditRequestSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat), TypeInfoPropertyName = "CreateImageEditRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat), TypeInfoPropertyName = "CreateImageEditRequestOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFidelity))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestQuality), TypeInfoPropertyName = "CreateImageEditRequestQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestModel), TypeInfoPropertyName = "CreateImageRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestQuality), TypeInfoPropertyName = "CreateImageRequestQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestResponseFormat), TypeInfoPropertyName = "CreateImageRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestOutputFormat), TypeInfoPropertyName = "CreateImageRequestOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestSize), TypeInfoPropertyName = "CreateImageRequestSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestModeration), TypeInfoPropertyName = "CreateImageRequestModeration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestBackground), TypeInfoPropertyName = "CreateImageRequestBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageRequestStyle), TypeInfoPropertyName = "CreateImageRequestStyle2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateImageVariationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestModel), TypeInfoPropertyName = "CreateImageVariationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat), TypeInfoPropertyName = "CreateImageVariationRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageVariationRequestSize), TypeInfoPropertyName = "CreateImageVariationRequestSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequestRole), TypeInfoPropertyName = "CreateMessageRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>), TypeInfoPropertyName = "OneOfStringIListOneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageRequestContentTextObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageRequestContentTextObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAssistantToolsCodeAssistantToolsFileSearchTypeOnly2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponseProperties))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequest))] + [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::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateModerationRequestInputVariant3ItemVariant1CreateModerationRequestInputVariant3ItemVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateModerationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationRequestModel), TypeInfoPropertyName = "CreateModerationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategories))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHateItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSexualItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem), TypeInfoPropertyName = "CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponse), TypeInfoPropertyName = "CreateResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseProperties))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponseVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputParam), TypeInfoPropertyName = "InputParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.IncludeEnum), TypeInfoPropertyName = "IncludeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamOptionsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContextManagementParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfTruncationObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfAssistantsApiToolChoiceOptionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestModel), TypeInfoPropertyName = "CreateSpeechRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat), TypeInfoPropertyName = "CreateSpeechRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat), TypeInfoPropertyName = "CreateSpeechRequestStreamFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent), TypeInfoPropertyName = "CreateSpeechResponseStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateThreadAndRunRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestModel), TypeInfoPropertyName = "CreateThreadAndRunRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_fc9fff4902f1d3b1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType), TypeInfoPropertyName = "CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateTranscriptionRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestModel), TypeInfoPropertyName = "CreateTranscriptionRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionInclude), TypeInfoPropertyName = "TranscriptionInclude2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie), TypeInfoPropertyName = "CreateTranscriptionRequestTimestampGranularitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1), TypeInfoPropertyName = "CreateTranscriptionRequestChunkingStrategyVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VadConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask), TypeInfoPropertyName = "CreateTranscriptionResponseDiarizedJsonTask2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionDiarizedSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage), TypeInfoPropertyName = "CreateTranscriptionResponseDiarizedJsonUsage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJson))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptTextUsageTokensTranscriptTextUsageDuration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent), TypeInfoPropertyName = "CreateTranscriptionResponseStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionWord))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateTranslationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestModel), TypeInfoPropertyName = "CreateTranslationRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat), TypeInfoPropertyName = "CreateTranslationRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationResponseJson))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateUploadRequestPurpose), TypeInfoPropertyName = "CreateUploadRequestPurpose2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVectorStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreExpirationAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfAutoChunkingStrategyRequestParamStaticChunkingStrategyRequestParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVoiceConsentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVoiceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallType), TypeInfoPropertyName = "CustomToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputType), TypeInfoPropertyName = "CustomToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListFunctionAndCustomToolCallOutput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput), TypeInfoPropertyName = "FunctionAndCustomToolCallOutput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), TypeInfoPropertyName = "CustomToolCallOutputResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputStatusEnum), TypeInfoPropertyName = "FunctionCallOutputStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallResource), TypeInfoPropertyName = "CustomToolCallResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallStatus), TypeInfoPropertyName = "FunctionCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsType), TypeInfoPropertyName = "CustomToolChatCompletionsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustom))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCustomToolChatCompletionsCustomFormatTextFormatCustomToolChatCompletionsCustomFormatGrammarFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatTextFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatGrammarFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax), TypeInfoPropertyName = "CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteAssistantResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteAssistantResponseObject), TypeInfoPropertyName = "DeleteAssistantResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteCertificateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteCertificateResponseObject), TypeInfoPropertyName = "DeleteCertificateResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFileResponseObject), TypeInfoPropertyName = "DeleteFileResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject), TypeInfoPropertyName = "DeleteFineTuningCheckpointPermissionResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteMessageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteMessageResponseObject), TypeInfoPropertyName = "DeleteMessageResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteModelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteThreadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteThreadResponseObject), TypeInfoPropertyName = "DeleteThreadResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject), TypeInfoPropertyName = "DeleteVectorStoreFileResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponseObject), TypeInfoPropertyName = "DeleteVectorStoreResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversation), TypeInfoPropertyName = "DeletedConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedRoleAssignmentResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventEvent), TypeInfoPropertyName = "DoneEventEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventData), TypeInfoPropertyName = "DoneEventData2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageRole), TypeInfoPropertyName = "EasyInputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListInputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageType), TypeInfoPropertyName = "EasyInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringEditImageBodyJsonParamModelObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModel), TypeInfoPropertyName = "EditImageBodyJsonParamModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageRefParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamSize2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmbeddingObject), TypeInfoPropertyName = "EmbeddingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEventEvent), TypeInfoPropertyName = "ErrorEventEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Eval))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalObject), TypeInfoPropertyName = "EvalObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalGraderLabelModelEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderLabelModel), TypeInfoPropertyName = "EvalGraderLabelModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalApiError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfigType), TypeInfoPropertyName = "EvalCustomDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderLabelModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderPython))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheck))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarity))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemRole), TypeInfoPropertyName = "EvalItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContent), TypeInfoPropertyName = "EvalItemContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemType), TypeInfoPropertyName = "EvalItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentItem), TypeInfoPropertyName = "EvalItemContentItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemInputImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemContentOutputTextType), TypeInfoPropertyName = "EvalItemContentOutputTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItemInputImageType), TypeInfoPropertyName = "EvalItemInputImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSourceType), TypeInfoPropertyName = "EvalJsonlFileContentSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSourceType), TypeInfoPropertyName = "EvalJsonlFileIdSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalListObject), TypeInfoPropertyName = "EvalListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfigType), TypeInfoPropertyName = "EvalLogsDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalResponsesSourceType), TypeInfoPropertyName = "EvalResponsesSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunObject), TypeInfoPropertyName = "EvalRunObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunResultCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunPerModelUsageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunListObject), TypeInfoPropertyName = "EvalRunListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemObject), TypeInfoPropertyName = "EvalRunOutputItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSample))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemListObject), TypeInfoPropertyName = "EvalRunOutputItemListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "EvalStoredCompletionsDataSourceConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType), TypeInfoPropertyName = "EvalStoredCompletionsSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePathType), TypeInfoPropertyName = "FilePathType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchRanker), TypeInfoPropertyName = "FileSearchRanker2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallType), TypeInfoPropertyName = "FileSearchToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallStatus), TypeInfoPropertyName = "FileSearchToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage), TypeInfoPropertyName = "FineTuneChatCompletionRequestAssistantMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersBetaDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta), TypeInfoPropertyName = "FineTuneDPOHyperparametersBeta2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersBatchSizeInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneDPOHyperparametersBatchSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersLearningRateMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneDPOHyperparametersLearningRateMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneDPOHyperparametersNEpochsInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneDPOHyperparametersNEpochs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneDPOMethod))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneMethodType), TypeInfoPropertyName = "FineTuneMethodType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedMethod))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementMethod))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersBatchSizeInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersBatchSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersLearningRateMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersLearningRateMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersNEpochsInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersNEpochs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersComputeMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersComputeMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersEvalIntervalInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersEvalInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneReinforcementHyperparametersEvalSamplesInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples), TypeInfoPropertyName = "FineTuneReinforcementHyperparametersEvalSamples2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfGraderStringCheckGraderTextSimilarityGraderPythonGraderScoreModelGraderMulti2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderMulti))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersBatchSizeInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersBatchSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersLearningRateMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersLearningRateMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuneSupervisedHyperparametersNEpochsInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs), TypeInfoPropertyName = "FineTuneSupervisedHyperparametersNEpochs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningCheckpointPermission))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject), TypeInfoPropertyName = "FineTuningCheckpointPermissionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegrationType), TypeInfoPropertyName = "FineTuningIntegrationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegrationWandb))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobError2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1), TypeInfoPropertyName = "FineTuningJobHyperparametersBatchSizeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuningJobHyperparametersLearningRateMultiplierDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "FineTuningJobHyperparametersLearningRateMultiplier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfFineTuningJobHyperparametersNEpochsInt322")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs), TypeInfoPropertyName = "FineTuningJobHyperparametersNEpochs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobObject), TypeInfoPropertyName = "FineTuningJobObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobStatus), TypeInfoPropertyName = "FineTuningJobStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobCheckpointObject), TypeInfoPropertyName = "FineTuningJobCheckpointObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventObject), TypeInfoPropertyName = "FineTuningJobEventObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventLevel), TypeInfoPropertyName = "FineTuningJobEventLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobEventType), TypeInfoPropertyName = "FineTuningJobEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallType), TypeInfoPropertyName = "FunctionToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallStatus), TypeInfoPropertyName = "FunctionToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputType), TypeInfoPropertyName = "FunctionToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputStatus), TypeInfoPropertyName = "FunctionToolCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderLabelModelType), TypeInfoPropertyName = "GraderLabelModelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderMultiType), TypeInfoPropertyName = "GraderMultiType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfGraderStringCheckGraderTextSimilarityGraderPythonGraderScoreModelGraderLabelModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderPythonType), TypeInfoPropertyName = "GraderPythonType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModelType), TypeInfoPropertyName = "GraderScoreModelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderScoreModelSamplingParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheckType), TypeInfoPropertyName = "GraderStringCheckType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderStringCheckOperation), TypeInfoPropertyName = "GraderStringCheckOperation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarityType), TypeInfoPropertyName = "GraderTextSimilarityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric), TypeInfoPropertyName = "GraderTextSimilarityEvaluationMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Group))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupObject), TypeInfoPropertyName = "GroupObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResourceObject), TypeInfoPropertyName = "GroupDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResourceObject), TypeInfoPropertyName = "GroupListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResourceWithSuccess))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignmentObject), TypeInfoPropertyName = "GroupUserAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResourceObject), TypeInfoPropertyName = "GroupUserDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Image2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventType), TypeInfoPropertyName = "ImageEditCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventSize), TypeInfoPropertyName = "ImageEditCompletedEventSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventQuality), TypeInfoPropertyName = "ImageEditCompletedEventQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventBackground), TypeInfoPropertyName = "ImageEditCompletedEventBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat), TypeInfoPropertyName = "ImageEditCompletedEventOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventType), TypeInfoPropertyName = "ImageEditPartialImageEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventSize), TypeInfoPropertyName = "ImageEditPartialImageEventSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventQuality), TypeInfoPropertyName = "ImageEditPartialImageEventQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventBackground), TypeInfoPropertyName = "ImageEditPartialImageEventBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageEditPartialImageEventOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEvent), TypeInfoPropertyName = "ImageEditStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventType), TypeInfoPropertyName = "ImageGenCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventSize), TypeInfoPropertyName = "ImageGenCompletedEventSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventQuality), TypeInfoPropertyName = "ImageGenCompletedEventQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventBackground), TypeInfoPropertyName = "ImageGenCompletedEventBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat), TypeInfoPropertyName = "ImageGenCompletedEventOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventType), TypeInfoPropertyName = "ImageGenPartialImageEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventSize), TypeInfoPropertyName = "ImageGenPartialImageEventSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventQuality), TypeInfoPropertyName = "ImageGenPartialImageEventQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventBackground), TypeInfoPropertyName = "ImageGenPartialImageEventBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageGenPartialImageEventOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEvent), TypeInfoPropertyName = "ImageGenStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolType), TypeInfoPropertyName = "ImageGenToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringImageGenToolModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolModel), TypeInfoPropertyName = "ImageGenToolModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolQuality), TypeInfoPropertyName = "ImageGenToolQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolSize), TypeInfoPropertyName = "ImageGenToolSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolOutputFormat), TypeInfoPropertyName = "ImageGenToolOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolModeration), TypeInfoPropertyName = "ImageGenToolModeration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolBackground), TypeInfoPropertyName = "ImageGenToolBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolInputImageMask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenActionEnum), TypeInfoPropertyName = "ImageGenActionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCallType), TypeInfoPropertyName = "ImageGenToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolCallStatus), TypeInfoPropertyName = "ImageGenToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseBackground), TypeInfoPropertyName = "ImagesResponseBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseOutputFormat), TypeInfoPropertyName = "ImagesResponseOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseSize), TypeInfoPropertyName = "ImagesResponseSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesResponseQuality), TypeInfoPropertyName = "ImagesResponseQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImagesUsageInputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioType), TypeInfoPropertyName = "InputAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1Format), TypeInfoPropertyName = "InputAudioInputAudio1Format2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItem), TypeInfoPropertyName = "InputItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Item), TypeInfoPropertyName = "Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemReferenceParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageType), TypeInfoPropertyName = "InputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageRole), TypeInfoPropertyName = "InputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageStatus), TypeInfoPropertyName = "InputMessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResource), TypeInfoPropertyName = "InputMessageResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Invite))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteObject), TypeInfoPropertyName = "InviteObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRole), TypeInfoPropertyName = "InviteRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteStatus), TypeInfoPropertyName = "InviteStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectRole), TypeInfoPropertyName = "InviteProjectRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteDeleteResponseObject), TypeInfoPropertyName = "InviteDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteListResponseObject), TypeInfoPropertyName = "InviteListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteProjectGroupBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestRole), TypeInfoPropertyName = "InviteRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InviteRequestProjectRole), TypeInfoPropertyName = "InviteRequestProjectRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResource), TypeInfoPropertyName = "ItemResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponseObject), TypeInfoPropertyName = "ListAuditLogsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListBatchesResponseObject), TypeInfoPropertyName = "ListBatchesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListCertificatesResponseObject), TypeInfoPropertyName = "ListCertificatesResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject), TypeInfoPropertyName = "ListFineTuningCheckpointPermissionResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject), TypeInfoPropertyName = "ListFineTuningJobCheckpointsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobEventsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject), TypeInfoPropertyName = "ListFineTuningJobEventsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListMessagesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListModelsResponseObject), TypeInfoPropertyName = "ListModelsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Model17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject), TypeInfoPropertyName = "ListPaginatedFineTuningJobsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallType), TypeInfoPropertyName = "LocalShellToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellExecAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallStatus), TypeInfoPropertyName = "LocalShellToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutputType), TypeInfoPropertyName = "LocalShellToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LogProbProperties))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalRequestType), TypeInfoPropertyName = "MCPApprovalRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseType), TypeInfoPropertyName = "MCPApprovalResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResourceType), TypeInfoPropertyName = "MCPApprovalResponseResourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListToolsType), TypeInfoPropertyName = "MCPListToolsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListToolsTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolType), TypeInfoPropertyName = "MCPToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolConnectorId), TypeInfoPropertyName = "MCPToolConnectorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2), TypeInfoPropertyName = "MCPToolRequireApprovalVariant1Enum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallType), TypeInfoPropertyName = "MCPToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallStatus), TypeInfoPropertyName = "MCPToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectType), TypeInfoPropertyName = "MessageContentImageFileObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail), TypeInfoPropertyName = "MessageContentImageFileObjectImageFileDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectType), TypeInfoPropertyName = "MessageContentImageUrlObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail), TypeInfoPropertyName = "MessageContentImageUrlObjectImageUrlDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentRefusalObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentRefusalObjectType), TypeInfoPropertyName = "MessageContentRefusalObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType), TypeInfoPropertyName = "MessageContentTextAnnotationsFileCitationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType), TypeInfoPropertyName = "MessageContentTextAnnotationsFilePathObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObjectType), TypeInfoPropertyName = "MessageContentTextObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentTextObjectText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentTextAnnotationsFileCitationObjectMessageContentTextAnnotationsFilePathObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType), TypeInfoPropertyName = "MessageDeltaContentImageFileObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail), TypeInfoPropertyName = "MessageDeltaContentImageFileObjectImageFileDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType), TypeInfoPropertyName = "MessageDeltaContentImageUrlObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail), TypeInfoPropertyName = "MessageDeltaContentImageUrlObjectImageUrlDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType), TypeInfoPropertyName = "MessageDeltaContentRefusalObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType), TypeInfoPropertyName = "MessageDeltaContentTextAnnotationsFileCitationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType), TypeInfoPropertyName = "MessageDeltaContentTextAnnotationsFilePathObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObjectType), TypeInfoPropertyName = "MessageDeltaContentTextObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObjectText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageDeltaContentTextAnnotationsFileCitationObjectMessageDeltaContentTextAnnotationsFilePathObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectObject), TypeInfoPropertyName = "MessageDeltaObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole), TypeInfoPropertyName = "MessageDeltaObjectDeltaRole2")] + [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.MessageObjectObject), TypeInfoPropertyName = "MessageObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectStatus), TypeInfoPropertyName = "MessageObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectIncompleteDetails2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason), TypeInfoPropertyName = "MessageObjectIncompleteDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectRole), TypeInfoPropertyName = "MessageObjectRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfMessageContentImageFileObjectMessageContentImageUrlObjectMessageContentTextObjectMessageContentRefusalObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObjectType), TypeInfoPropertyName = "MessageRequestContentTextObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1Event), TypeInfoPropertyName = "MessageStreamEventVariant1Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2Event), TypeInfoPropertyName = "MessageStreamEventVariant2Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3Event), TypeInfoPropertyName = "MessageStreamEventVariant3Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4Event), TypeInfoPropertyName = "MessageStreamEventVariant4Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5Event), TypeInfoPropertyName = "MessageStreamEventVariant5Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelObject), TypeInfoPropertyName = "ModelObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIds), TypeInfoPropertyName = "ModelIds2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsResponses), TypeInfoPropertyName = "ModelIdsResponses2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsCompaction), TypeInfoPropertyName = "ModelIdsCompaction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), TypeInfoPropertyName = "ModelIdsResponsesEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), TypeInfoPropertyName = "ModelIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyCertificateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyMessageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NoiseReductionType), TypeInfoPropertyName = "NoiseReductionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject), TypeInfoPropertyName = "OpenAIFileObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose), TypeInfoPropertyName = "OpenAIFilePurpose2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType), TypeInfoPropertyName = "OtherChunkingStrategyResponseParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputAudioType), TypeInfoPropertyName = "OutputAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTextContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RefusalContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningTextContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItem), TypeInfoPropertyName = "OutputItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageType), TypeInfoPropertyName = "OutputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageRole), TypeInfoPropertyName = "OutputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContent), TypeInfoPropertyName = "OutputMessageContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageStatus), TypeInfoPropertyName = "OutputMessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContentType), TypeInfoPropertyName = "PredictionContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Project))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectObject), TypeInfoPropertyName = "ProjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectStatus), TypeInfoPropertyName = "ProjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyObject), TypeInfoPropertyName = "ProjectApiKeyObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyOwner))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyOwnerType), TypeInfoPropertyName = "ProjectApiKeyOwnerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject), TypeInfoPropertyName = "ProjectApiKeyDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectApiKeyListResponseObject), TypeInfoPropertyName = "ProjectApiKeyListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectCreateRequestGeography), TypeInfoPropertyName = "ProjectCreateRequestGeography2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupObject), TypeInfoPropertyName = "ProjectGroupObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject), TypeInfoPropertyName = "ProjectGroupDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectGroupListResourceObject), TypeInfoPropertyName = "ProjectGroupListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectListResponseObject), TypeInfoPropertyName = "ProjectListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitObject), TypeInfoPropertyName = "ProjectRateLimitObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitListResponseObject), TypeInfoPropertyName = "ProjectRateLimitListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountObject), TypeInfoPropertyName = "ProjectServiceAccountObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountRole), TypeInfoPropertyName = "ProjectServiceAccountRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountApiKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject), TypeInfoPropertyName = "ProjectServiceAccountApiKeyObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject), TypeInfoPropertyName = "ProjectServiceAccountCreateResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole), TypeInfoPropertyName = "ProjectServiceAccountCreateResponseRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject), TypeInfoPropertyName = "ProjectServiceAccountDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject), TypeInfoPropertyName = "ProjectServiceAccountListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserObject), TypeInfoPropertyName = "ProjectUserObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserRole), TypeInfoPropertyName = "ProjectUserRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserCreateRequestRole), TypeInfoPropertyName = "ProjectUserCreateRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserDeleteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserDeleteResponseObject), TypeInfoPropertyName = "ProjectUserDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectUserUpdateRequestRole), TypeInfoPropertyName = "ProjectUserUpdateRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicRoleListResourceObject), TypeInfoPropertyName = "PublicRoleListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormats), TypeInfoPropertyName = "RealtimeAudioFormats2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmAudioFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmuAudioFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType), TypeInfoPropertyName = "RealtimeAudioFormatsPcmaAudioFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemCreateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItem), TypeInfoPropertyName = "RealtimeConversationItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemDeleteType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemRetrieveType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType), TypeInfoPropertyName = "RealtimeBetaClientEventConversationItemTruncateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferAppendType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferClearType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType), TypeInfoPropertyName = "RealtimeBetaClientEventInputAudioBufferCommitType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType), TypeInfoPropertyName = "RealtimeBetaClientEventOutputAudioBufferClearType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType), TypeInfoPropertyName = "RealtimeBetaClientEventResponseCancelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType), TypeInfoPropertyName = "RealtimeBetaClientEventResponseCreateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeBetaClientEventSessionUpdateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType), TypeInfoPropertyName = "RealtimeBetaClientEventTranscriptionSessionUpdateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseObject), TypeInfoPropertyName = "RealtimeBetaResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatus), TypeInfoPropertyName = "RealtimeBetaResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType), TypeInfoPropertyName = "RealtimeBetaResponseStatusDetailsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason), TypeInfoPropertyName = "RealtimeBetaResponseStatusDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsShared), TypeInfoPropertyName = "VoiceIdsShared2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie), TypeInfoPropertyName = "RealtimeBetaResponseModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat), TypeInfoPropertyName = "RealtimeBetaResponseOutputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeBetaResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeBetaResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsOutputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfToolChoiceOptionsToolChoiceFunctionToolChoiceMCP2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), TypeInfoPropertyName = "ToolChoiceOptions2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCP))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeBetaResponseCreateParamsMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringRealtimeBetaResponseCreateParamsConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation), TypeInfoPropertyName = "RealtimeBetaResponseCreateParamsConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemDeletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemRetrievedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType), TypeInfoPropertyName = "RealtimeBetaServerEventConversationItemTruncatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType), TypeInfoPropertyName = "RealtimeBetaServerEventErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferClearedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferCommittedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferSpeechStartedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType), TypeInfoPropertyName = "RealtimeBetaServerEventInputAudioBufferSpeechStoppedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType), TypeInfoPropertyName = "RealtimeBetaServerEventMCPListToolsInProgressType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventRateLimitsUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName), TypeInfoPropertyName = "RealtimeBetaServerEventRateLimitsUpdatedRateLimitName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedPartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDonePartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallArgumentsDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallInProgressType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseOutputItemAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseOutputItemDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseTextDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseTextDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventSessionCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSession))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventSessionUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventTranscriptionSessionCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType), TypeInfoPropertyName = "RealtimeBetaServerEventTranscriptionSessionUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallReferRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCallRejectRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEvent), TypeInfoPropertyName = "RealtimeClientEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemCreateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeClientEventConversationItemDeleteType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType), TypeInfoPropertyName = "RealtimeClientEventConversationItemRetrieveType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemTruncateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferAppendType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferClearType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType), TypeInfoPropertyName = "RealtimeClientEventInputAudioBufferCommitType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType), TypeInfoPropertyName = "RealtimeClientEventOutputAudioBufferClearType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType), TypeInfoPropertyName = "RealtimeClientEventResponseCancelType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType), TypeInfoPropertyName = "RealtimeClientEventResponseCreateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeClientEventSessionUpdateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestGARealtimeTranscriptionSessionCreateRequestGA2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType), TypeInfoPropertyName = "RealtimeClientEventTranscriptionSessionUpdateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageAssistantContentItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageSystemContentItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject), TypeInfoPropertyName = "RealtimeConversationItemMessageUserObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType), TypeInfoPropertyName = "RealtimeConversationItemMessageUserType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus), TypeInfoPropertyName = "RealtimeConversationItemMessageUserStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole), TypeInfoPropertyName = "RealtimeConversationItemMessageUserRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType), TypeInfoPropertyName = "RealtimeConversationItemMessageUserContentItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail), TypeInfoPropertyName = "RealtimeConversationItemMessageUserContentItemDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType), TypeInfoPropertyName = "RealtimeConversationItemWithReferenceContentItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor), TypeInfoPropertyName = "RealtimeCreateClientSecretRequestExpiresAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Session2), TypeInfoPropertyName = "Session22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionToolType), TypeInfoPropertyName = "RealtimeFunctionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType), TypeInfoPropertyName = "RealtimeMCPApprovalRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType), TypeInfoPropertyName = "RealtimeMCPApprovalResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPHTTPError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType), TypeInfoPropertyName = "RealtimeMCPHTTPErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPListToolsType), TypeInfoPropertyName = "RealtimeMCPListToolsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPProtocolError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType), TypeInfoPropertyName = "RealtimeMCPProtocolErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCallType), TypeInfoPropertyName = "RealtimeMCPToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolExecutionError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType), TypeInfoPropertyName = "RealtimeMCPToolExecutionErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseObject), TypeInfoPropertyName = "RealtimeResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatus), TypeInfoPropertyName = "RealtimeResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType), TypeInfoPropertyName = "RealtimeResponseStatusDetailsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason), TypeInfoPropertyName = "RealtimeResponseStatusDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseOutputModalitie), TypeInfoPropertyName = "RealtimeResponseOutputModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie), TypeInfoPropertyName = "RealtimeResponseCreateParamsOutputModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeFunctionToolMCPTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeResponseCreateParamsMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens), TypeInfoPropertyName = "RealtimeResponseCreateParamsMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringRealtimeResponseCreateParamsConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation), TypeInfoPropertyName = "RealtimeResponseCreateParamsConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEvent), TypeInfoPropertyName = "RealtimeServerEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemDeletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType), TypeInfoPropertyName = "RealtimeServerEventConversationItemDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType), TypeInfoPropertyName = "RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemRetrievedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemTruncatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorType), TypeInfoPropertyName = "RealtimeServerEventErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferClearedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferCommittedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferDtmfEventReceivedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferSpeechStartedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferSpeechStoppedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType), TypeInfoPropertyName = "RealtimeServerEventInputAudioBufferTimeoutTriggeredType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType), TypeInfoPropertyName = "RealtimeServerEventMCPListToolsInProgressType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferClearedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferStartedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType), TypeInfoPropertyName = "RealtimeServerEventOutputAudioBufferStoppedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType), TypeInfoPropertyName = "RealtimeServerEventRateLimitsUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName), TypeInfoPropertyName = "RealtimeServerEventRateLimitsUpdatedRateLimitName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioTranscriptDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseAudioTranscriptDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartAddedPartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeServerEventResponseContentPartDonePartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeServerEventResponseCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseFunctionCallArgumentsDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseFunctionCallArgumentsDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallArgumentsDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallArgumentsDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType), TypeInfoPropertyName = "RealtimeServerEventResponseMCPCallInProgressType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType), TypeInfoPropertyName = "RealtimeServerEventResponseOutputItemAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseOutputItemDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType), TypeInfoPropertyName = "RealtimeServerEventResponseTextDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType), TypeInfoPropertyName = "RealtimeServerEventResponseTextDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeServerEventSessionCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType), TypeInfoPropertyName = "RealtimeServerEventSessionUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType), TypeInfoPropertyName = "RealtimeServerEventTranscriptionSessionUpdatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionObject), TypeInfoPropertyName = "RealtimeSessionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionModalitie), TypeInfoPropertyName = "RealtimeSessionModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionModel), TypeInfoPropertyName = "RealtimeSessionModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat), TypeInfoPropertyName = "RealtimeSessionInputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat), TypeInfoPropertyName = "RealtimeSessionOutputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum), TypeInfoPropertyName = "RealtimeSessionTracingTracingConfigurationEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionMaxResponseOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens), TypeInfoPropertyName = "RealtimeSessionMaxResponseOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item), TypeInfoPropertyName = "RealtimeSessionIncludeVariant1Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie), TypeInfoPropertyName = "RealtimeSessionCreateRequestModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestTracingEnumRealtimeSessionCreateRequestTracingEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateRequestTracingEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType), TypeInfoPropertyName = "RealtimeSessionCreateRequestToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateRequestMaxResponseOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateRequestMaxResponseOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncation), TypeInfoPropertyName = "RealtimeTruncation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAOutputModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionCreateRequestGAModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateRequestGATracingEnumRealtimeSessionCreateRequestGATracingEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateRequestGATracingEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateRequestGAMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateRequestGAMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateResponseIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateResponseOutputModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRealtimeSessionCreateResponseTracingEnumRealtimeSessionCreateResponseTracingEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum), TypeInfoPropertyName = "RealtimeSessionCreateResponseTracingEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateResponseMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAClientSecret))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAOutputModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringRealtimeSessionCreateResponseGAModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_fe3c1cd2e870870e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum), TypeInfoPropertyName = "RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfInt32RealtimeSessionCreateResponseGAMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens), TypeInfoPropertyName = "RealtimeSessionCreateResponseGAMaxOutputTokens2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestTurnDetectionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestInputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestGAType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateRequestGAIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseGAType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem), TypeInfoPropertyName = "RealtimeTranscriptionSessionCreateResponseGAIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), TypeInfoPropertyName = "RealtimeTruncationEnum2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnumType), TypeInfoPropertyName = "RealtimeTruncationEnumType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Reasoning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningSummary2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningGenerateSummary2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItemType), TypeInfoPropertyName = "ReasoningItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SummaryTextContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningItemStatus), TypeInfoPropertyName = "ReasoningItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Response), TypeInfoPropertyName = "Response2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3Object), TypeInfoPropertyName = "ResponseVariant3Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3Status), TypeInfoPropertyName = "ResponseVariant3Status2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason), TypeInfoPropertyName = "ResponseVariant3IncompleteDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Conversation22))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEventType), TypeInfoPropertyName = "ResponseAudioDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEventType), TypeInfoPropertyName = "ResponseAudioDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInterpretingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEventType), TypeInfoPropertyName = "ResponseCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEventType), TypeInfoPropertyName = "ResponseContentPartAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEventType), TypeInfoPropertyName = "ResponseContentPartDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEventType), TypeInfoPropertyName = "ResponseCreatedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorCode), TypeInfoPropertyName = "ResponseErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEventType), TypeInfoPropertyName = "ResponseErrorEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEventType), TypeInfoPropertyName = "ResponseFailedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseFileSearchCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType), TypeInfoPropertyName = "ResponseFileSearchCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType), TypeInfoPropertyName = "ResponseFileSearchCallSearchingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObjectType), TypeInfoPropertyName = "ResponseFormatJsonObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaType), TypeInfoPropertyName = "ResponseFormatJsonSchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextType), TypeInfoPropertyName = "ResponseFormatTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextGrammar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextGrammarType), TypeInfoPropertyName = "ResponseFormatTextGrammarType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextPython))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormatTextPythonType), TypeInfoPropertyName = "ResponseFormatTextPythonType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType), TypeInfoPropertyName = "ResponseFunctionCallArgumentsDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType), TypeInfoPropertyName = "ResponseFunctionCallArgumentsDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType), TypeInfoPropertyName = "ResponseImageGenCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType), TypeInfoPropertyName = "ResponseImageGenCallGeneratingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType), TypeInfoPropertyName = "ResponseImageGenCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType), TypeInfoPropertyName = "ResponseImageGenCallPartialImageEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseInProgressEventType), TypeInfoPropertyName = "ResponseInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseIncompleteEventType), TypeInfoPropertyName = "ResponseIncompleteEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseItemList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseItemListObject), TypeInfoPropertyName = "ResponseItemListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseLogProb))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseLogProbTopLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType), TypeInfoPropertyName = "ResponseMCPCallArgumentsDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType), TypeInfoPropertyName = "ResponseMCPCallArgumentsDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType), TypeInfoPropertyName = "ResponseMCPCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEventType), TypeInfoPropertyName = "ResponseMCPCallFailedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType), TypeInfoPropertyName = "ResponseMCPCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType), TypeInfoPropertyName = "ResponseMCPListToolsCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType), TypeInfoPropertyName = "ResponseMCPListToolsFailedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType), TypeInfoPropertyName = "ResponseMCPListToolsInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseModalitiesVariant1Item), TypeInfoPropertyName = "ResponseModalitiesVariant1Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEventType), TypeInfoPropertyName = "ResponseOutputItemAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEventType), TypeInfoPropertyName = "ResponseOutputItemDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType), TypeInfoPropertyName = "ResponseOutputTextAnnotationAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInputTextContentInputImageContentInputFileContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceParam), TypeInfoPropertyName = "ToolChoiceParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsePropertiesTruncation2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseQueuedEventType), TypeInfoPropertyName = "ResponseQueuedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType), TypeInfoPropertyName = "ResponseReasoningSummaryPartAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType), TypeInfoPropertyName = "ResponseReasoningSummaryPartAddedEventPartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType), TypeInfoPropertyName = "ResponseReasoningSummaryPartDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType), TypeInfoPropertyName = "ResponseReasoningSummaryPartDoneEventPartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType), TypeInfoPropertyName = "ResponseReasoningSummaryTextDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType), TypeInfoPropertyName = "ResponseReasoningSummaryTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType), TypeInfoPropertyName = "ResponseReasoningTextDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType), TypeInfoPropertyName = "ResponseReasoningTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEventType), TypeInfoPropertyName = "ResponseRefusalDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEventType), TypeInfoPropertyName = "ResponseRefusalDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEvent), TypeInfoPropertyName = "ResponseStreamEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEventType), TypeInfoPropertyName = "ResponseTextDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEventType), TypeInfoPropertyName = "ResponseTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsageInputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseWebSearchCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType), TypeInfoPropertyName = "ResponseWebSearchCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType), TypeInfoPropertyName = "ResponseWebSearchCallSearchingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEvent), TypeInfoPropertyName = "ResponsesClientEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreate), TypeInfoPropertyName = "ResponsesClientEventResponseCreate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type), TypeInfoPropertyName = "ResponsesClientEventResponseCreateVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEvent), TypeInfoPropertyName = "ResponsesServerEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleObject), TypeInfoPropertyName = "RoleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleDeletedResourceObject), TypeInfoPropertyName = "RoleDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RoleListResourceObject), TypeInfoPropertyName = "RoleListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunCompletionUsageVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponseMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunGraderResponseMetadataErrors))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectObject), TypeInfoPropertyName = "RunObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectStatus), TypeInfoPropertyName = "RunObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionType), TypeInfoPropertyName = "RunObjectRequiredActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectLastErrorCode), TypeInfoPropertyName = "RunObjectLastErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason), TypeInfoPropertyName = "RunObjectIncompleteDetailsReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepCompletionUsageVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectObject), TypeInfoPropertyName = "RunStepDeltaObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaObjectDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDeltaStepDetailsMessageCreationObjectRunStepDeltaStepDetailsToolCallsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsMessageCreationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectRunStepDeltaStepDetailsToolCallsCodeOutputImageObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFileSearchObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsObjectType2")] + [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.RunStepDetailsMessageCreationObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType), TypeInfoPropertyName = "RunStepDetailsMessageCreationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsToolCallsCodeOutputLogsObjectRunStepDetailsToolCallsCodeOutputImageObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeOutputImageObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsCodeOutputLogsObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsFileSearchObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType), TypeInfoPropertyName = "RunStepDetailsToolCallsFileSearchResultObjectContentItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsFunctionObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType), TypeInfoPropertyName = "RunStepDetailsToolCallsObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsToolCallsCodeObjectRunStepDetailsToolCallsFileSearchObjectRunStepDetailsToolCallsFunctionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectObject), TypeInfoPropertyName = "RunStepObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectType), TypeInfoPropertyName = "RunStepObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectStatus), TypeInfoPropertyName = "RunStepObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfRunStepDetailsMessageCreationObjectRunStepDetailsToolCallsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectLastError2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepObjectLastErrorCode), TypeInfoPropertyName = "RunStepObjectLastErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1Event), TypeInfoPropertyName = "RunStepStreamEventVariant1Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2Event), TypeInfoPropertyName = "RunStepStreamEventVariant2Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3Event), TypeInfoPropertyName = "RunStepStreamEventVariant3Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4Event), TypeInfoPropertyName = "RunStepStreamEventVariant4Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5Event), TypeInfoPropertyName = "RunStepStreamEventVariant5Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6Event), TypeInfoPropertyName = "RunStepStreamEventVariant6Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7Event), TypeInfoPropertyName = "RunStepStreamEventVariant7Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1Event), TypeInfoPropertyName = "RunStreamEventVariant1Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2Event), TypeInfoPropertyName = "RunStreamEventVariant2Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3Event), TypeInfoPropertyName = "RunStreamEventVariant3Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4Event), TypeInfoPropertyName = "RunStreamEventVariant4Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5Event), TypeInfoPropertyName = "RunStreamEventVariant5Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6Event), TypeInfoPropertyName = "RunStreamEventVariant6Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7Event), TypeInfoPropertyName = "RunStreamEventVariant7Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8Event), TypeInfoPropertyName = "RunStreamEventVariant8Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9Event), TypeInfoPropertyName = "RunStreamEventVariant9Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10Event), TypeInfoPropertyName = "RunStreamEventVariant10Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObjectType), TypeInfoPropertyName = "RunToolCallObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RunToolCallObjectFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEventType), TypeInfoPropertyName = "SpeechAudioDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventType), TypeInfoPropertyName = "SpeechAudioDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType), TypeInfoPropertyName = "StaticChunkingStrategyRequestParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType), TypeInfoPropertyName = "StaticChunkingStrategyResponseParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType), TypeInfoPropertyName = "TextResponseFormatJsonSchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectObject), TypeInfoPropertyName = "ThreadObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResources2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1Event), TypeInfoPropertyName = "ThreadStreamEventVariant1Event2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToggleCertificatesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceCustom))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceCustomType), TypeInfoPropertyName = "ToolChoiceCustomType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceFunctionType), TypeInfoPropertyName = "ToolChoiceFunctionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceMCPType), TypeInfoPropertyName = "ToolChoiceMCPType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceTypes))] + [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.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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEventType), TypeInfoPropertyName = "TranscriptTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEventType), TypeInfoPropertyName = "TranscriptTextSegmentEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDurationType), TypeInfoPropertyName = "TranscriptTextUsageDurationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokensType), TypeInfoPropertyName = "TranscriptTextUsageTokensType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategy), TypeInfoPropertyName = "TranscriptionChunkingStrategy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), TypeInfoPropertyName = "TranscriptionChunkingStrategyEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType), TypeInfoPropertyName = "TranscriptionDiarizedSegmentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationObjectType), TypeInfoPropertyName = "TruncationObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateGroupBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVectorStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfVectorStoreExpirationAfterObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateVoiceConsentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Upload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadStatus), TypeInfoPropertyName = "UploadStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadObject), TypeInfoPropertyName = "UploadObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfOpenAIFileObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadCertificateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPartObject), TypeInfoPropertyName = "UploadPartObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResultObject), TypeInfoPropertyName = "UsageAudioSpeechesResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject), TypeInfoPropertyName = "UsageAudioTranscriptionsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject), TypeInfoPropertyName = "UsageCodeInterpreterSessionsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsResultObject), TypeInfoPropertyName = "UsageCompletionsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResultObject), TypeInfoPropertyName = "UsageEmbeddingsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesResultObject), TypeInfoPropertyName = "UsageImagesResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsResultObject), TypeInfoPropertyName = "UsageModerationsResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageResponseObject), TypeInfoPropertyName = "UsageResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucket))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucketObject), TypeInfoPropertyName = "UsageTimeBucketObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "CostsResult_9223e6415b8f3df9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CostsResult_254199414aa1f371")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResultObject), TypeInfoPropertyName = "UsageVectorStoresResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.User))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserObject), TypeInfoPropertyName = "UserObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRole), TypeInfoPropertyName = "UserRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserDeleteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserDeleteResponseObject), TypeInfoPropertyName = "UserDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResourceObject), TypeInfoPropertyName = "UserListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserListResponseObject), TypeInfoPropertyName = "UserListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleAssignmentObject), TypeInfoPropertyName = "UserRoleAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserRoleUpdateRequestRole), TypeInfoPropertyName = "UserRoleUpdateRequestRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VadConfigType), TypeInfoPropertyName = "VadConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ValidateGraderResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor), TypeInfoPropertyName = "VectorStoreExpirationAfterAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringDoubleBoolean2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject), TypeInfoPropertyName = "VectorStoreFileBatchObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus), TypeInfoPropertyName = "VectorStoreFileBatchObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponseObject), TypeInfoPropertyName = "VectorStoreFileContentResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectObject), TypeInfoPropertyName = "VectorStoreFileObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectStatus), TypeInfoPropertyName = "VectorStoreFileObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectLastError2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode), TypeInfoPropertyName = "VectorStoreFileObjectLastErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStaticChunkingStrategyResponseParamOtherChunkingStrategyResponseParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectObject), TypeInfoPropertyName = "VectorStoreObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectFileCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreObjectStatus), TypeInfoPropertyName = "VectorStoreObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfComparisonFilterCompoundFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker), TypeInfoPropertyName = "VectorStoreSearchRequestRankingOptionsRanker2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultContentObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType), TypeInfoPropertyName = "VectorStoreSearchResultContentObjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultsPage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject), TypeInfoPropertyName = "VectorStoreSearchResultsPageObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject), TypeInfoPropertyName = "VoiceConsentDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentListResourceObject), TypeInfoPropertyName = "VoiceConsentListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceConsentResourceObject), TypeInfoPropertyName = "VoiceConsentResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), TypeInfoPropertyName = "VoiceIdsSharedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceResourceObject), TypeInfoPropertyName = "VoiceResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionFind))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionFindType), TypeInfoPropertyName = "WebSearchActionFindType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPageType), TypeInfoPropertyName = "WebSearchActionOpenPageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchActionSearchType), TypeInfoPropertyName = "WebSearchActionSearchType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [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.WebSearchToolFilters2))] + [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.WebSearchToolCallStatus), TypeInfoPropertyName = "WebSearchToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledObject), TypeInfoPropertyName = "WebhookBatchCancelledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledType), TypeInfoPropertyName = "WebhookBatchCancelledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedObject), TypeInfoPropertyName = "WebhookBatchCompletedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCompletedType), TypeInfoPropertyName = "WebhookBatchCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpired))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredObject), TypeInfoPropertyName = "WebhookBatchExpiredObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchExpiredType), TypeInfoPropertyName = "WebhookBatchExpiredType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedObject), TypeInfoPropertyName = "WebhookBatchFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchFailedType), TypeInfoPropertyName = "WebhookBatchFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledObject), TypeInfoPropertyName = "WebhookEvalRunCanceledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunCanceledType), TypeInfoPropertyName = "WebhookEvalRunCanceledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedObject), TypeInfoPropertyName = "WebhookEvalRunFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunFailedType), TypeInfoPropertyName = "WebhookEvalRunFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceeded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededObject), TypeInfoPropertyName = "WebhookEvalRunSucceededObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookEvalRunSucceededType), TypeInfoPropertyName = "WebhookEvalRunSucceededType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject), TypeInfoPropertyName = "WebhookFineTuningJobCancelledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType), TypeInfoPropertyName = "WebhookFineTuningJobCancelledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject), TypeInfoPropertyName = "WebhookFineTuningJobFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedType), TypeInfoPropertyName = "WebhookFineTuningJobFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject), TypeInfoPropertyName = "WebhookFineTuningJobSucceededObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType), TypeInfoPropertyName = "WebhookFineTuningJobSucceededType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncoming))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject), TypeInfoPropertyName = "WebhookRealtimeCallIncomingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType), TypeInfoPropertyName = "WebhookRealtimeCallIncomingType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject), TypeInfoPropertyName = "WebhookResponseCancelledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType), TypeInfoPropertyName = "WebhookResponseCancelledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject), TypeInfoPropertyName = "WebhookResponseCompletedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType), TypeInfoPropertyName = "WebhookResponseCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject), TypeInfoPropertyName = "WebhookResponseFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType), TypeInfoPropertyName = "WebhookResponseFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncomplete))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject), TypeInfoPropertyName = "WebhookResponseIncompleteObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType), TypeInfoPropertyName = "WebhookResponseIncompleteType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType), TypeInfoPropertyName = "ContainerNetworkPolicyDisabledParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType), TypeInfoPropertyName = "ContainerNetworkPolicyAllowlistParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStatus), TypeInfoPropertyName = "MessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRole), TypeInfoPropertyName = "MessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBodyType), TypeInfoPropertyName = "FileCitationBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBodyType), TypeInfoPropertyName = "UrlCitationBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBodyType), TypeInfoPropertyName = "ContainerFileCitationBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Annotation), TypeInfoPropertyName = "Annotation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TopLogProb))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LogProb))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputTextContentType), TypeInfoPropertyName = "OutputTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextContentType), TypeInfoPropertyName = "TextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SummaryTextContentType), TypeInfoPropertyName = "SummaryTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningTextContentType), TypeInfoPropertyName = "ReasoningTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RefusalContentType), TypeInfoPropertyName = "RefusalContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageDetail), TypeInfoPropertyName = "ImageDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentType), TypeInfoPropertyName = "InputImageContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotContentType), TypeInfoPropertyName = "ComputerScreenshotContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentType), TypeInfoPropertyName = "InputFileContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase2), TypeInfoPropertyName = "MessagePhase22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageType), TypeInfoPropertyName = "MessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem3), TypeInfoPropertyName = "ContentItem32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickButtonType), TypeInfoPropertyName = "ClickButtonType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickParamType), TypeInfoPropertyName = "ClickParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoubleClickActionType), TypeInfoPropertyName = "DoubleClickActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CoordParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DragParamType), TypeInfoPropertyName = "DragParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.KeyPressActionType), TypeInfoPropertyName = "KeyPressActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MoveParamType), TypeInfoPropertyName = "MoveParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScreenshotParamType), TypeInfoPropertyName = "ScreenshotParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ScrollParamType), TypeInfoPropertyName = "ScrollParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TypeParamType), TypeInfoPropertyName = "TypeParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WaitParamType), TypeInfoPropertyName = "WaitParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchExecutionType), TypeInfoPropertyName = "ToolSearchExecutionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallType), TypeInfoPropertyName = "ToolSearchCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolType), TypeInfoPropertyName = "FunctionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RankerVersionType), TypeInfoPropertyName = "RankerVersionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HybridSearchOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RankingOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Filters2), TypeInfoPropertyName = "Filters22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileSearchToolType), TypeInfoPropertyName = "FileSearchToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerToolType), TypeInfoPropertyName = "ComputerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerEnvironment), TypeInfoPropertyName = "ComputerEnvironment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerUsePreviewToolType), TypeInfoPropertyName = "ComputerUsePreviewToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerMemoryLimit), TypeInfoPropertyName = "ContainerMemoryLimit2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType), TypeInfoPropertyName = "AutoCodeInterpreterToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy2), TypeInfoPropertyName = "NetworkPolicy22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolParamType), TypeInfoPropertyName = "LocalShellToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamType), TypeInfoPropertyName = "ContainerAutoParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy3), TypeInfoPropertyName = "NetworkPolicy32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem2), TypeInfoPropertyName = "SkillsItem22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalSkillParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParamType), TypeInfoPropertyName = "LocalEnvironmentParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceParamType), TypeInfoPropertyName = "ContainerReferenceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamType), TypeInfoPropertyName = "FunctionShellToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParamType), TypeInfoPropertyName = "CustomTextFormatParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GrammarSyntax1), TypeInfoPropertyName = "GrammarSyntax12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParamType), TypeInfoPropertyName = "CustomGrammarFormatParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamType), TypeInfoPropertyName = "CustomToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Format2), TypeInfoPropertyName = "Format22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmptyModelParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParamType), TypeInfoPropertyName = "FunctionToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamType), TypeInfoPropertyName = "NamespaceToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem13), TypeInfoPropertyName = "ToolsItem132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchToolParamType), TypeInfoPropertyName = "ToolSearchToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocationType), TypeInfoPropertyName = "ApproximateLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SearchContextSize), TypeInfoPropertyName = "SearchContextSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SearchContentType), TypeInfoPropertyName = "SearchContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewToolType), TypeInfoPropertyName = "WebSearchPreviewToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParamType), TypeInfoPropertyName = "ApplyPatchToolParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputType), TypeInfoPropertyName = "ToolSearchOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionBodyType), TypeInfoPropertyName = "CompactionBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogsType), TypeInfoPropertyName = "CodeInterpreterOutputLogsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImageType), TypeInfoPropertyName = "CodeInterpreterOutputImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellExecActionType), TypeInfoPropertyName = "LocalShellExecActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellCallStatus), TypeInfoPropertyName = "LocalShellCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentResourceType), TypeInfoPropertyName = "LocalEnvironmentResourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerReferenceResourceType), TypeInfoPropertyName = "ContainerReferenceResourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallType), TypeInfoPropertyName = "FunctionShellCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellCallOutputStatusEnum), TypeInfoPropertyName = "LocalShellCallOutputStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType), TypeInfoPropertyName = "FunctionShellCallOutputExitOutcomeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Outcome), TypeInfoPropertyName = "Outcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputType), TypeInfoPropertyName = "FunctionShellCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallStatus), TypeInfoPropertyName = "ApplyPatchCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType), TypeInfoPropertyName = "ApplyPatchCreateFileOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType), TypeInfoPropertyName = "ApplyPatchDeleteFileOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallType), TypeInfoPropertyName = "ApplyPatchToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation), TypeInfoPropertyName = "Operation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatus), TypeInfoPropertyName = "ApplyPatchCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputType), TypeInfoPropertyName = "ApplyPatchToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DetailEnum), TypeInfoPropertyName = "DetailEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallItemStatus), TypeInfoPropertyName = "FunctionCallItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParamType), TypeInfoPropertyName = "ComputerCallOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentParamType), TypeInfoPropertyName = "InputTextContentParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParamType), TypeInfoPropertyName = "InputImageContentParamAutoParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContentParamType), TypeInfoPropertyName = "InputFileContentParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamType), TypeInfoPropertyName = "FunctionCallOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListOutputVariant2Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputVariant2Item), TypeInfoPropertyName = "OutputVariant2Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType), TypeInfoPropertyName = "ToolSearchCallItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType), TypeInfoPropertyName = "ToolSearchOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParamType), TypeInfoPropertyName = "CompactionSummaryItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellActionParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemStatus), TypeInfoPropertyName = "FunctionShellCallItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamType), TypeInfoPropertyName = "FunctionShellCallItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputExitOutcomeParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam), TypeInfoPropertyName = "FunctionShellCallOutputOutcomeParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType), TypeInfoPropertyName = "FunctionShellCallOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallStatusParam), TypeInfoPropertyName = "ApplyPatchCallStatusParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchCreateFileOperationParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType), TypeInfoPropertyName = "ApplyPatchDeleteFileOperationParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParam), TypeInfoPropertyName = "ApplyPatchOperationParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam), TypeInfoPropertyName = "ApplyPatchCallOutputStatusParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallOutputItemParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemReferenceParamType2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationResourceObject), TypeInfoPropertyName = "ConversationResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenOutputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenInputUsageDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParamType), TypeInfoPropertyName = "SpecificApplyPatchParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParamType), TypeInfoPropertyName = "SpecificFunctionShellParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateConversationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateConversationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversationResourceObject), TypeInfoPropertyName = "DeletedConversationResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrderEnum), TypeInfoPropertyName = "OrderEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoModel), TypeInfoPropertyName = "VideoModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoModelEnum), TypeInfoPropertyName = "VideoModelEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoStatus), TypeInfoPropertyName = "VideoStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoSize), TypeInfoPropertyName = "VideoSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Error2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoResourceObject), TypeInfoPropertyName = "VideoResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoListResourceObject), TypeInfoPropertyName = "VideoListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageRefParam2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoSeconds), TypeInfoPropertyName = "VideoSeconds2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoMultipartBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfByteArrayImageRefParam22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoJsonBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoCharacterBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoCharacterResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoReferenceInputParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoEditMultipartBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfByteArrayVideoReferenceInputParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoEditJsonBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoExtendMultipartBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfVideoReferenceInputParamByteArray2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoExtendJsonBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVideoResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedVideoResourceObject), TypeInfoPropertyName = "DeletedVideoResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VideoContentVariant), TypeInfoPropertyName = "VideoContentVariant2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateVideoRemixBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TruncationEnum), TypeInfoPropertyName = "TruncationEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TokenCountsResourceObject), TypeInfoPropertyName = "TokenCountsResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResponseMethodPublicBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemField), TypeInfoPropertyName = "ItemField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemFieldDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResourceObject), TypeInfoPropertyName = "CompactResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillResourceObject), TypeInfoPropertyName = "SkillResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillListResourceObject), TypeInfoPropertyName = "SkillListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSkillBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, byte[]>), TypeInfoPropertyName = "OneOfIListByteArrayByteArray2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SetDefaultSkillVersionBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillResourceObject), TypeInfoPropertyName = "DeletedSkillResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionResourceObject), TypeInfoPropertyName = "SkillVersionResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillVersionListResourceObject), TypeInfoPropertyName = "SkillVersionListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSkillVersionBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillVersionResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedSkillVersionResourceObject), TypeInfoPropertyName = "DeletedSkillVersionResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflowTracing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitWorkflow))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringInt32BooleanDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionRateLimits))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionStatus), TypeInfoPropertyName = "ChatSessionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionFileUpload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionHistory))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionChatkitConfiguration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatSessionResourceObject), TypeInfoPropertyName = "ChatSessionResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowTracingParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WorkflowParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExpiresAfterParamAnchor), TypeInfoPropertyName = "ExpiresAfterParamAnchor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RateLimitsParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutomaticThreadTitlingParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileUploadParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HistoryParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatkitConfigurationParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatSessionBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageInputTextType), TypeInfoPropertyName = "UserMessageInputTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageQuotedTextType), TypeInfoPropertyName = "UserMessageQuotedTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AttachmentType), TypeInfoPropertyName = "AttachmentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Attachment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoice8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InferenceOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemObject), TypeInfoPropertyName = "UserMessageItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemType), TypeInfoPropertyName = "UserMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem4), TypeInfoPropertyName = "ContentItem42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSourceType), TypeInfoPropertyName = "FileAnnotationSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationType), TypeInfoPropertyName = "FileAnnotationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationSourceType), TypeInfoPropertyName = "UrlAnnotationSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlAnnotationType), TypeInfoPropertyName = "UrlAnnotationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextType), TypeInfoPropertyName = "ResponseOutputTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationsItem3), TypeInfoPropertyName = "AnnotationsItem32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemObject), TypeInfoPropertyName = "AssistantMessageItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemType), TypeInfoPropertyName = "AssistantMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItemObject), TypeInfoPropertyName = "WidgetMessageItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WidgetMessageItemType), TypeInfoPropertyName = "WidgetMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallStatus), TypeInfoPropertyName = "ClientToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItemObject), TypeInfoPropertyName = "ClientToolCallItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClientToolCallItemType), TypeInfoPropertyName = "ClientToolCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskType), TypeInfoPropertyName = "TaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItemObject), TypeInfoPropertyName = "TaskItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskItemType), TypeInfoPropertyName = "TaskItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItemObject), TypeInfoPropertyName = "TaskGroupItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TaskGroupItemType), TypeInfoPropertyName = "TaskGroupItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItem), TypeInfoPropertyName = "ThreadItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResourceObject), TypeInfoPropertyName = "ThreadItemListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ActiveStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ActiveStatusType), TypeInfoPropertyName = "ActiveStatusType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LockedStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LockedStatusType), TypeInfoPropertyName = "LockedStatusType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClosedStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClosedStatusType), TypeInfoPropertyName = "ClosedStatusType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceObject), TypeInfoPropertyName = "ThreadResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Status), TypeInfoPropertyName = "Status2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResourceObject), TypeInfoPropertyName = "DeletedThreadResourceObject2")] + [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.DragPoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestEndpoint), TypeInfoPropertyName = "CreateBatchRequestEndpoint2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow), TypeInfoPropertyName = "CreateBatchRequestCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateChatCompletionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateConversationItemsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UpdateEvalRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsOrder), TypeInfoPropertyName = "ListAssistantsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListChatCompletionsOrder), TypeInfoPropertyName = "ListChatCompletionsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetChatCompletionMessagesOrder), TypeInfoPropertyName = "GetChatCompletionMessagesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListContainersOrder), TypeInfoPropertyName = "ListContainersOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListContainerFilesOrder), TypeInfoPropertyName = "ListContainerFilesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListConversationItemsOrder), TypeInfoPropertyName = "ListConversationItemsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrder), TypeInfoPropertyName = "ListEvalsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListEvalsOrderBy), TypeInfoPropertyName = "ListEvalsOrderBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunsOrder), TypeInfoPropertyName = "GetEvalRunsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunsStatus), TypeInfoPropertyName = "GetEvalRunsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus), TypeInfoPropertyName = "GetEvalRunOutputItemsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder), TypeInfoPropertyName = "GetEvalRunOutputItemsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesOrder), TypeInfoPropertyName = "ListFilesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder), TypeInfoPropertyName = "ListFineTuningCheckpointPermissionsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysListOrder), TypeInfoPropertyName = "AdminApiKeysListOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsEffectiveAt))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListOrganizationCertificatesOrder), TypeInfoPropertyName = "ListOrganizationCertificatesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetCertificateIncludeItem), TypeInfoPropertyName = "GetCertificateIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCostsBucketWidth), TypeInfoPropertyName = "UsageCostsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCostsGroupByItem), TypeInfoPropertyName = "UsageCostsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupsOrder), TypeInfoPropertyName = "ListGroupsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder), TypeInfoPropertyName = "ListGroupRoleAssignmentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListGroupUsersOrder), TypeInfoPropertyName = "ListGroupUsersOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectCertificatesOrder), TypeInfoPropertyName = "ListProjectCertificatesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectGroupsOrder), TypeInfoPropertyName = "ListProjectGroupsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRolesOrder), TypeInfoPropertyName = "ListRolesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth), TypeInfoPropertyName = "UsageAudioSpeechesBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem), TypeInfoPropertyName = "UsageAudioSpeechesGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth), TypeInfoPropertyName = "UsageAudioTranscriptionsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem), TypeInfoPropertyName = "UsageAudioTranscriptionsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth), TypeInfoPropertyName = "UsageCodeInterpreterSessionsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem), TypeInfoPropertyName = "UsageCodeInterpreterSessionsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsBucketWidth), TypeInfoPropertyName = "UsageCompletionsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageCompletionsGroupByItem), TypeInfoPropertyName = "UsageCompletionsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth), TypeInfoPropertyName = "UsageEmbeddingsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem), TypeInfoPropertyName = "UsageEmbeddingsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesBucketWidth), TypeInfoPropertyName = "UsageImagesBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesSource), TypeInfoPropertyName = "UsageImagesSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesSize), TypeInfoPropertyName = "UsageImagesSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageImagesGroupByItem), TypeInfoPropertyName = "UsageImagesGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsBucketWidth), TypeInfoPropertyName = "UsageModerationsBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageModerationsGroupByItem), TypeInfoPropertyName = "UsageModerationsGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresBucketWidth), TypeInfoPropertyName = "UsageVectorStoresBucketWidth2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresGroupByItem), TypeInfoPropertyName = "UsageVectorStoresGroupByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListUserRoleAssignmentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder), TypeInfoPropertyName = "ListProjectGroupRoleAssignmentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectRolesOrder), TypeInfoPropertyName = "ListProjectRolesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder), TypeInfoPropertyName = "ListProjectUserRoleAssignmentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListInputItemsOrder), TypeInfoPropertyName = "ListInputItemsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListMessagesOrder), TypeInfoPropertyName = "ListMessagesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunsOrder), TypeInfoPropertyName = "ListRunsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateRunIncludeItem), TypeInfoPropertyName = "CreateRunIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsOrder), TypeInfoPropertyName = "ListRunStepsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListRunStepsIncludeItem), TypeInfoPropertyName = "ListRunStepsIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GetRunStepIncludeItem), TypeInfoPropertyName = "GetRunStepIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoresOrder), TypeInfoPropertyName = "ListVectorStoresOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder), TypeInfoPropertyName = "ListFilesInVectorStoreBatchOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter), TypeInfoPropertyName = "ListFilesInVectorStoreBatchFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesOrder), TypeInfoPropertyName = "ListVectorStoreFilesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListVectorStoreFilesFilter), TypeInfoPropertyName = "ListVectorStoreFilesFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranscriptionResponseJsonCreateTranscriptionResponseDiarizedJsonCreateTranscriptionResponseVerboseJson2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranslationResponseJsonCreateTranslationResponseVerboseJson2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteEvalResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteEvalRunResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponse))] + [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))] + [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::tryAGI.OpenAI.OneOf>))] + [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::tryAGI.OpenAI.OneOf>))] + [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::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::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.Collections.Generic.List, 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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>))] + [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::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] + [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))] + [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::tryAGI.OpenAI.OneOf>))] + [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::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))] + [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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>))] + [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>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] + [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))] + [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))] + [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))] + [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>), 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))] + [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>), TypeInfoPropertyName = "CostsResult_d3bbf02a8a0474bf")] + [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::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))] + [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::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, byte[]>))] + [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))] + [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))] + public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs new file mode 100644 index 000000000..955cd5b0e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -0,0 +1,11830 @@ + +#nullable enable + +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class JsonSerializerContextTypes + { + /// + /// + /// + public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } + + /// + /// + /// + public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } + + /// + /// + /// + public global::System.Text.Json.JsonElement? JsonElement { get; set; } + + /// + /// + /// + public global::tryAGI.OpenAI.AddUploadPartRequest? Type0 { get; set; } + /// + /// + /// + public byte[]? Type1 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKey? Type2 { get; set; } + /// + /// + /// + public string? Type3 { get; set; } + /// + /// + /// + public global::System.DateTimeOffset? Type4 { get; set; } + /// + /// + /// + public object? Type5 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeyOwner? Type6 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApiKeyList? Type7 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type8 { get; set; } + /// + /// + /// + public bool? Type9 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssignedRoleDetails? Type10 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type11 { get; set; } + /// + /// + /// + public long? Type12 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantObject? Type13 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantObjectObject? Type14 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type15 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type16 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsCode? Type17 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFileSearch? Type18 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFunction? Type19 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantObjectToolResources2? Type20 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type21 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantObjectToolResourcesFileSearch? Type22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type23 { get; set; } + /// + /// + /// + public double? Type24 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? Type25 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantStreamEvent? Type26 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadStreamEvent? Type27 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEvent? Type28 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEvent? Type29 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEvent? Type30 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ErrorEvent? Type31 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DoneEvent? Type32 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantSupportedModels? Type33 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsCodeType? Type34 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFileSearchType? Type35 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFileSearchFileSearch? Type36 { get; set; } + /// + /// + /// + public int? Type37 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchRankingOptions? Type38 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? Type39 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType? Type40 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantToolsFunctionType? Type41 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionObject? Type42 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Type43 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatText? Type44 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonObject? Type45 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonSchema? Type46 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? Type47 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Type48 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Type49 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsNamedToolChoiceType? Type50 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction? Type51 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AudioResponseFormat? Type52 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AudioTranscription? Type53 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type54 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AudioTranscriptionModel? Type55 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLog? Type56 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogEventType? Type57 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProject? Type58 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActor? Type59 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type60 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type61 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type62 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type63 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type64 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type65 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type66 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type67 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogExternalKeyRegistered? Type68 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogExternalKeyRemoved? Type69 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogGroupCreated? Type70 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogGroupCreatedData? Type71 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogGroupUpdated? Type72 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogGroupUpdatedChangesRequested? Type73 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogGroupDeleted? Type74 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogScimEnabled? Type75 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogScimDisabled? Type76 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogInviteSent? Type77 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogInviteSentData? Type78 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type79 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type80 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistCreated? Type81 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistUpdated? Type82 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistDeleted? Type83 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivated? Type84 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type85 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigActivatedConfig? Type86 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivated? Type87 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type88 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogIpAllowlistConfigDeactivatedConfig? Type89 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogLoginFailed? Type90 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type91 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type92 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type93 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectCreated? Type94 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type95 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type96 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type97 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectArchived? Type98 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogProjectDeleted? Type99 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type100 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type101 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type102 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleCreated? Type103 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleUpdated? Type104 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleUpdatedChangesRequested? Type105 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleDeleted? Type106 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleAssignmentCreated? Type107 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogRoleAssignmentDeleted? Type108 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type109 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type110 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type111 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type112 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type113 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogUserAdded? Type114 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogUserAddedData? Type115 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogUserUpdated? Type116 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type117 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogUserDeleted? Type118 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type119 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type120 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type121 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type122 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type123 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type124 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type125 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type126 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type127 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorType? Type128 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorSession? Type129 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorApiKey? Type130 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type131 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorUser? Type132 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type133 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type134 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type135 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Batch? Type136 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchObject? Type137 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchErrors? Type138 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type139 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchErrorsDataItem? Type140 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchStatus? Type141 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchRequestCounts? Type142 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchUsage? Type143 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchUsageInputTokensDetails? Type144 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchUsageOutputTokensDetails? Type145 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchFileExpirationAfter? Type146 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor? Type147 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Certificate? Type148 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CertificateObject? Type149 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CertificateCertificateDetails? Type150 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionAllowedTools? Type151 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode? Type152 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type153 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice? Type154 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType? Type155 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionDeleted? Type156 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type157 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type158 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionFunctions? Type159 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionParameters? Type160 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionList? Type161 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionListObject? Type162 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type163 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type164 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? Type165 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType? Type166 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom? Type167 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageList? Type168 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type169 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type170 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AllOf? Type171 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type172 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type173 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type174 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type175 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type176 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type177 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type178 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type179 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type180 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type181 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type182 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type183 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type184 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type185 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type186 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type187 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type188 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type189 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type190 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type191 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type192 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type193 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type194 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type195 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type196 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type197 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type198 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type199 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2? Type200 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2? Type201 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type202 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type203 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type204 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type205 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type206 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type207 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type208 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type209 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type210 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type211 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type212 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type213 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type214 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type215 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type216 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type217 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type218 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type219 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type220 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type221 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type222 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type223 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type224 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type225 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type226 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type227 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type228 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type229 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type230 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type231 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type232 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type233 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type234 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type235 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type236 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type237 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type238 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type239 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type240 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type241 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type242 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type243 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type244 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2? Type245 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRole? Type246 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type247 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type248 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type249 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type250 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type251 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type252 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type253 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type254 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type255 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionTool? Type256 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionToolType? Type257 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type258 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type259 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type260 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type261 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type262 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type263 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type264 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type265 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type266 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type267 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type268 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterTool? Type269 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolType? Type270 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type271 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type272 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type273 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type274 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type275 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type276 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputsVariant1Item? Type277 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type278 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type279 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type280 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComparisonFilter? Type281 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComparisonFilterType? Type282 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>>? Type283 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type284 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type285 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompleteUploadRequest? Type286 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompletionUsage? Type287 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type288 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type289 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompoundFilter? Type290 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompoundFilterType? Type291 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type292 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FiltersItem? Type293 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type294 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerAction? Type295 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClickParam? Type296 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DoubleClickAction? Type297 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DragParam? Type298 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.KeyPressAction? Type299 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MoveParam? Type300 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ScreenshotParam? Type301 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ScrollParam? Type302 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TypeParam? Type303 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WaitParam? Type304 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type305 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type306 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerScreenshotImage? Type307 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type308 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCall? Type309 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallType? Type310 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type311 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type312 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallStatus? Type313 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallOutput? Type314 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type315 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type316 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type317 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type318 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type319 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerFileListResource? Type320 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type321 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type322 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerFileResource? Type323 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerListResource? Type324 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerListResourceObject? Type325 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type326 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResource? Type327 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type328 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type329 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type330 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type331 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type332 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Content5? Type333 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputContent? Type334 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputContent? Type335 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationItem? Type336 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Message? Type337 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallResource? Type338 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type339 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchToolCall? Type340 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCall? Type341 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolCall? Type342 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchCall? Type343 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchOutput? Type344 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningItem? Type345 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactionBody? Type346 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCall? Type347 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type348 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCall? Type349 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutput? Type350 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCall? Type351 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type352 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPListTools? Type353 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalRequest? Type354 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type355 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolCall? Type356 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCall? Type357 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallOutput? Type358 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type359 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationItemList? Type360 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationItemListObject? Type361 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type362 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationParam? Type363 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationParam2? Type364 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CostsResult? Type365 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CostsResultObject? Type366 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CostsResultAmount? Type367 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequest? Type368 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type369 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningEffortEnum? Type370 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResources2? Type371 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type372 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type373 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type374 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type375 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type376 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type377 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type378 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type379 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type380 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type381 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModelResponseProperties? Type382 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type383 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type384 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIdsShared? Type385 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type386 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VerbosityEnum? Type387 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type388 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type389 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type390 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchLocation? Type391 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchContextSize? Type392 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormat? Type393 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type394 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type395 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type396 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type397 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StopConfiguration? Type398 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type399 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PredictionContent? Type400 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type401 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type402 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletions? Type403 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type404 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type405 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type406 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type407 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type408 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type409 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2? Type410 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type411 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ServiceTierEnum? Type412 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type413 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type414 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type415 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type416 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type417 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type418 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type419 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionRequest? Type420 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type421 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type422 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type423 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type424 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type425 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionResponse? Type426 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type427 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type428 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type429 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2? Type430 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type431 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type432 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type433 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type434 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBody? Type435 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type436 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type437 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type438 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillsItem? Type439 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillReferenceParam? Type440 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InlineSkillParam? Type441 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type442 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type443 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NetworkPolicy? Type444 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type445 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type446 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type447 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateContainerFileBody? Type448 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type449 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type450 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type451 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type452 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type453 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type454 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Embedding? Type455 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type456 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type457 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type458 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type459 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type460 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type461 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type462 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type463 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EasyInputMessage? Type464 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItem? Type465 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type466 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type467 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type468 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type469 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type470 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type471 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type472 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type473 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type474 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type475 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type476 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalItem? Type477 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type478 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type479 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type480 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type481 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type482 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type483 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type484 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type485 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type486 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalRequest? Type487 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type488 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type489 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type490 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderStringCheck? Type491 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type492 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderPython? Type493 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderScoreModel? Type494 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type495 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type496 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type497 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type498 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type499 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type500 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type501 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type502 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type503 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type504 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type505 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Tool? Type506 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type507 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type508 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type509 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalResponsesSource? Type510 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalRunRequest? Type511 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type512 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type513 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFileRequest? Type514 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type515 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileExpirationAfter? Type516 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type517 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type518 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type519 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type520 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type521 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type522 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type523 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type524 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type525 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type526 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type527 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type528 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type529 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type530 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type531 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneMethod? Type532 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateGroupBody? Type533 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateGroupUserBody? Type534 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequest? Type535 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf>? Type536 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type537 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type538 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type539 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type540 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type541 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type542 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type543 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputFidelity? Type544 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type545 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequest? Type546 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type547 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestModel? Type548 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestQuality? Type549 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type550 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type551 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestSize? Type552 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestModeration? Type553 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestBackground? Type554 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageRequestStyle? Type555 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageVariationRequest? Type556 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type557 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type558 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type559 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type560 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateMessageRequest? Type561 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateMessageRequestRole? Type562 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>>? Type563 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type564 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type565 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageFileObject? Type566 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type567 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type568 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type569 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type570 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type571 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type572 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelResponseProperties? Type573 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type574 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequest? Type575 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type576 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type577 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type578 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type579 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type580 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type581 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type582 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type583 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationRequestModel? Type584 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponse? Type585 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type586 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResult? Type587 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type588 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type589 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type590 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type591 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type592 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type593 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type594 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type595 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type596 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type597 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type598 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type599 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type600 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type601 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type602 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type603 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type604 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type605 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type606 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type607 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type608 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type609 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type610 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type611 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type612 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type613 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type614 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type615 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type616 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateResponse? Type617 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseProperties? Type618 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateResponseVariant3? Type619 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputParam? Type620 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type621 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.IncludeEnum? Type622 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type623 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type624 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContextManagementParam? Type625 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunRequest? Type626 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type627 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AllOf? Type628 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TruncationObject? Type629 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AllOf? Type630 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechRequest? Type631 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type632 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type633 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type634 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type635 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type636 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type637 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type638 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type639 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type640 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequest? Type641 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type642 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type643 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type644 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type645 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type646 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResources2? Type647 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type648 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type649 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type650 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type651 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type652 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type653 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type654 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type655 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type656 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type657 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type658 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type659 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type660 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionInclude? Type661 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type662 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type663 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type664 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type665 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VadConfig? Type666 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type667 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type668 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type669 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type670 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type671 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type672 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type673 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type674 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type675 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type676 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type677 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type678 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type679 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type680 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type681 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type682 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type683 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type684 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type685 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionWord? Type686 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type687 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionSegment? Type688 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranslationRequest? Type689 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type690 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type691 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type692 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type693 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type694 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateUploadRequest? Type695 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type696 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type697 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type698 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type699 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type700 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type701 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type702 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type703 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVoiceRequest? Type704 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallType? Type705 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallOutputType? Type706 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type707 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type708 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type709 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type710 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type711 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type712 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallResource? Type713 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type714 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallStatus? Type715 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type716 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type717 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type718 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type719 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type720 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type721 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type722 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type723 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type724 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type725 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type726 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type727 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type728 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteFileResponse? Type729 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type730 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type731 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type732 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteMessageResponse? Type733 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type734 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteModelResponse? Type735 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteThreadResponse? Type736 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type737 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type738 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type739 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type740 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type741 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedConversation? Type742 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedConversationResource? Type743 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type744 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DoneEventEvent? Type745 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DoneEventData? Type746 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EasyInputMessageRole? Type747 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type748 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type749 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessagePhase? Type750 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EasyInputMessageType? Type751 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type752 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type753 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type754 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type755 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageRefParam? Type756 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2? Type757 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2? Type758 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamSize2? Type759 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2? Type760 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2? Type761 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2? Type762 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type763 { get; set; } + /// + /// + /// + public float? Type764 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EmbeddingObject? Type765 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Error? Type766 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ErrorEventEvent? Type767 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ErrorResponse? Type768 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Eval? Type769 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalObject? Type770 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type771 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type772 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type773 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type774 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type775 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type776 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type777 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalApiError? Type778 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type779 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderLabelModel? Type780 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderPython? Type781 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type782 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderScoreModel? Type783 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type784 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderStringCheck? Type785 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderTextSimilarity? Type786 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type787 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemRole? Type788 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemContent? Type789 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemType? Type790 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemContentItem? Type791 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type792 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputTextContent? Type793 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemContentOutputText? Type794 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemInputImage? Type795 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputAudio? Type796 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type797 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalItemInputImageType? Type798 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type799 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type800 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type801 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type802 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalList? Type803 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalListObject? Type804 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type805 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type806 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type807 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRun? Type808 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunObject? Type809 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunResultCounts? Type810 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type811 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type812 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type813 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type814 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunList? Type815 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunListObject? Type816 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type817 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItem? Type818 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type819 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type820 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type821 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type822 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type823 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type824 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type825 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type826 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type827 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type828 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type829 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type830 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type831 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type832 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type833 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FilePath? Type834 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FilePathType? Type835 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchRanker? Type836 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchToolCallType? Type837 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type838 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type839 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type840 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type841 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type842 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type843 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type844 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type845 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type846 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type847 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type848 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type849 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type850 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type851 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type852 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneMethodType? Type853 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type854 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type855 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type856 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type857 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type858 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type859 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type860 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type861 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type862 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type863 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type864 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type865 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type866 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type867 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type868 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type869 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type870 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderMulti? Type871 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type872 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type873 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type874 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type875 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type876 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type877 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type878 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type879 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type880 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningIntegration? Type881 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type882 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type883 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJob? Type884 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobError2? Type885 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type886 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type887 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type888 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type889 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type890 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type891 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type892 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobObject? Type893 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobStatus? Type894 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type895 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type896 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type897 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type898 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobEvent? Type899 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type900 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type901 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FineTuningJobEventType? Type902 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputImageContent? Type903 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputFileContent? Type904 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type905 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCall? Type906 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallType? Type907 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type908 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type909 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type910 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type911 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type912 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type913 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderLabelModelType? Type914 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type915 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderMultiType? Type916 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type917 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderPythonType? Type918 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderScoreModelType? Type919 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type920 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderStringCheckType? Type921 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type922 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type923 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type924 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Group? Type925 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupObject? Type926 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupDeletedResource? Type927 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type928 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupListResource? Type929 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupListResourceObject? Type930 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type931 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupResponse? Type932 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type933 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupRoleAssignment? Type934 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type935 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Role? Type936 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupUserAssignment? Type937 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type938 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupUserDeletedResource? Type939 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type940 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Image2? Type941 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type942 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type943 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type944 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type945 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type946 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type947 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesUsage? Type948 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type949 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type950 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type951 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type952 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type953 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type954 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type955 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type956 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type957 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type958 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type959 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type960 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type961 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type962 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type963 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type964 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type965 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type966 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type967 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type968 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type969 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type970 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenTool? Type971 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolType? Type972 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type973 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolModel? Type974 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolQuality? Type975 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolSize? Type976 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type977 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolModeration? Type978 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolBackground? Type979 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type980 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenActionEnum? Type981 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolCallType? Type982 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type983 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesResponse? Type984 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type985 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesResponseBackground? Type986 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type987 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesResponseSize? Type988 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesResponseQuality? Type989 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenUsage? Type990 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type991 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputAudioType? Type992 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputAudioInputAudio1? Type993 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type994 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputContentDiscriminator? Type995 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputItem? Type996 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Item? Type997 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemReferenceParam? Type998 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputItemDiscriminator? Type999 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessage? Type1000 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessageType? Type1001 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessageRole? Type1002 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessageStatus? Type1003 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessageResource? Type1004 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1005 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1006 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Invite? Type1007 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteObject? Type1008 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteRole? Type1009 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteStatus? Type1010 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1011 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteProject? Type1012 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteProjectRole? Type1013 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1014 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1015 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteListResponse? Type1016 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteListResponseObject? Type1017 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1018 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1019 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteRequest? Type1020 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteRequestRole? Type1021 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1022 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteRequestProject? Type1023 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1024 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessage? Type1025 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1026 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1027 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1028 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1029 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1030 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1031 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1032 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1033 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1034 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalResponse? Type1035 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemDiscriminator? Type1036 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemResource? Type1037 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1038 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1039 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1040 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1041 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1042 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1043 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListBatchesResponse? Type1044 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1045 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1046 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1047 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1048 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1049 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesResponse? Type1050 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1051 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OpenAIFile? Type1052 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1053 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1054 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1055 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1056 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1057 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1058 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1059 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1060 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1061 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesResponse? Type1062 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1063 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObject? Type1064 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListModelsResponse? Type1065 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1066 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1067 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Model17? Type1068 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1069 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1070 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1071 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1072 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1073 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObject? Type1074 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsResponse? Type1075 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1076 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObject? Type1077 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1078 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1079 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1080 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1081 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1082 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreObject? Type1083 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCallType? Type1084 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellExecAction? Type1085 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1086 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1087 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2? Type1088 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LogProbProperties? Type1089 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1090 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1091 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1092 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPListToolsType? Type1093 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1094 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPListToolsTool? Type1095 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPTool? Type1096 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolType? Type1097 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolConnectorId? Type1098 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1099 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolFilter? Type1100 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1101 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1102 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1103 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolCallType? Type1104 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MCPToolCallStatus? Type1105 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1106 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1107 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1108 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1109 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1110 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1111 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1112 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1113 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1114 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1115 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1116 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1117 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1118 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1119 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextObject? Type1120 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1121 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1122 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type1123 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1124 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1125 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1126 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1127 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1128 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1129 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1130 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1131 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1132 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1133 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1134 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1135 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1136 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1137 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1138 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1139 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1140 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1141 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1142 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1143 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type1144 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1145 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaObject? Type1146 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1147 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1148 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1149 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectObject? Type1150 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectStatus? Type1151 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectIncompleteDetails2? Type1152 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1153 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectRole? Type1154 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1155 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1156 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1157 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1158 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1159 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1160 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1161 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1162 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1163 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1164 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1165 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1166 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1167 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelObject? Type1168 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIds? Type1169 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIdsResponses? Type1170 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIdsCompaction? Type1171 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1172 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1173 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2? Type1174 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1175 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2? Type1176 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1177 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1178 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1179 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1180 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyRunRequest? Type1181 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1182 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources2? Type1183 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1184 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1185 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NoiseReductionType? Type1186 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OpenAIFileObject? Type1187 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1188 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1189 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1190 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1191 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputAudio? Type1192 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputAudioType? Type1193 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputTextContent? Type1194 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RefusalContent? Type1195 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningTextContent? Type1196 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1197 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputItem? Type1198 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1199 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageType? Type1200 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageRole? Type1201 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1202 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageContent? Type1203 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageStatus? Type1204 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1205 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PredictionContentType? Type1206 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Project? Type1207 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectObject? Type1208 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectStatus? Type1209 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKey? Type1210 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1211 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1212 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1213 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUser? Type1214 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1215 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1216 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1217 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1218 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1219 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1220 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1221 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectCreateRequestGeography? Type1222 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroup? Type1223 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroupObject? Type1224 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1225 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1226 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroupListResource? Type1227 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1228 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1229 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectListResponse? Type1230 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1231 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1232 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectRateLimit? Type1233 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1234 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1235 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1236 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1237 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1238 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1239 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1240 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1241 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1242 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1243 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1244 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1245 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1246 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1247 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1248 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1249 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1250 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1251 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1252 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserObject? Type1253 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserRole? Type1254 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1255 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1256 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1257 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1258 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1259 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1260 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1261 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1262 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PromptVariant1? Type1263 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1264 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1265 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PublicRoleListResource? Type1266 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1267 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1268 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1269 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1270 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1271 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1272 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1273 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1274 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1275 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1276 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1277 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1278 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1279 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1280 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1281 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1282 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1283 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1284 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1285 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1286 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1287 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1288 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1289 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1290 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1291 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1292 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1293 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1294 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1295 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1296 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1297 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1298 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1299 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1300 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1301 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1302 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1303 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1304 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1305 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1306 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1307 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1308 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1309 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1310 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1311 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1312 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1313 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1314 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1315 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1316 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceIdsShared? Type1317 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1318 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1319 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1320 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1321 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1322 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1323 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1324 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1325 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1326 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1327 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1328 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1329 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceOptions? Type1330 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceFunction? Type1331 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceMCP? Type1332 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1333 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1334 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1335 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1336 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1337 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1338 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1339 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1340 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1341 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1342 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1343 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1344 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1345 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1346 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1347 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1348 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1349 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1350 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1351 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1352 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1353 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1354 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1355 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1356 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1357 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1358 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1359 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1360 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1361 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1362 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1363 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1364 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1365 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1366 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1367 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1368 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1369 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1370 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1371 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1372 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1373 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1374 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1375 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1376 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1377 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1378 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1379 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1380 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1381 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1382 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1383 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1384 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1385 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1386 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1387 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1388 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1389 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1390 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1391 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1392 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1393 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1394 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1395 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1396 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1397 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1398 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1399 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1400 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1401 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1402 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1403 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1404 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1405 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1406 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1407 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1408 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1409 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1410 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1411 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1412 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1413 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1414 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1415 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1416 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1417 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1418 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1419 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1420 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSession? Type1421 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1422 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1423 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1424 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1425 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1426 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1427 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1428 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1429 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1430 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1431 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1432 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1433 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1434 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1435 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1436 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1437 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1438 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1439 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1440 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1441 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1442 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1443 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1444 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1445 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1446 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1447 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1448 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1449 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1450 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1451 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1452 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1453 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1454 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1455 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1456 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1457 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1458 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1459 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1460 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1461 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1462 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1463 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1464 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1465 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1466 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1467 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1468 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1469 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1470 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1471 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1472 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1473 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1474 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1475 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1476 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1477 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1478 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1479 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1480 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1481 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1482 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1483 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1484 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1485 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1486 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1487 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1488 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1489 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1490 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1491 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1492 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1493 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1494 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1495 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1496 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1497 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1498 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1499 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1500 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1501 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1502 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1503 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1504 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1505 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1506 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1507 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1508 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1509 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1510 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1511 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Session2? Type1512 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1513 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1514 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1515 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1516 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1517 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1518 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1519 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1520 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1521 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1522 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1523 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1524 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1525 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1526 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1527 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1528 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponse? Type1529 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1530 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1531 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1532 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1533 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1534 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1535 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1536 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1537 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1538 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1539 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1540 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1541 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1542 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1543 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1544 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1545 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1546 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1547 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1548 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1549 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type1550 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1551 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1552 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1553 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1554 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1555 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1556 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1557 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1558 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1559 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1560 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1561 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1562 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1563 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1564 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1565 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1566 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1567 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1568 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1569 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1570 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1571 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1572 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1573 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1574 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1575 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1576 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1577 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1578 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1579 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1580 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1581 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1582 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1583 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1584 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1585 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1586 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1587 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1588 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1589 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1590 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1591 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1592 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1593 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1594 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1595 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1596 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1597 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1598 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1599 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1600 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1601 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1602 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1603 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1604 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1605 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1606 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1607 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1608 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1609 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1610 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1611 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1612 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1613 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1614 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1615 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1616 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1617 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1618 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1619 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1620 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1621 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1622 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1623 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1624 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1625 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1626 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1627 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1628 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1629 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1630 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1631 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1632 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1633 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1634 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1635 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1636 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1637 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1638 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1639 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1640 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1641 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1642 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1643 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1644 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1645 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1646 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1647 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1648 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1649 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1650 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1651 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1652 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1653 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1654 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1655 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1656 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1657 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1658 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1659 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1660 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1661 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1662 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1663 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1664 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type1665 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionModel? Type1666 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1667 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1668 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1669 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1670 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1671 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1672 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1673 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1674 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1675 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1676 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1677 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1678 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1679 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1680 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1681 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1682 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1683 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1684 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1685 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1686 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1687 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1688 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1689 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1690 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1691 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTruncation? Type1692 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1693 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1694 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1695 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type1696 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1697 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1698 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1699 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1700 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1701 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1702 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1703 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1704 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1705 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1706 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1707 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1708 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1709 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1710 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1711 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1712 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1713 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1714 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1715 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1716 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1717 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1718 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1719 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1720 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1721 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1722 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1723 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1724 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAClientSecret? Type1725 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1726 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1727 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1728 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type1729 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1730 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1731 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1732 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1733 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1734 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1735 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1736 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1737 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1738 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1739 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1740 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1741 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1742 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1743 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1744 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1745 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1746 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1747 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1748 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1749 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1750 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1751 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1752 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1753 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1754 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1755 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1756 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type1757 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1758 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type1759 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type1760 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type1761 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type1762 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type1763 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1764 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1765 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1766 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1767 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1768 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1769 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1770 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1771 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Reasoning? Type1772 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningSummary2? Type1773 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1774 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningItemType? Type1775 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1776 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SummaryTextContent? Type1777 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1778 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningItemStatus? Type1779 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Response? Type1780 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseVariant3? Type1781 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseVariant3Object? Type1782 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseVariant3Status? Type1783 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1784 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1785 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1786 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1787 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type1788 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseUsage? Type1789 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Conversation22? Type1790 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1791 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1792 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1793 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1794 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1795 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1796 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1797 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1798 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1799 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1800 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1801 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1802 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1803 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1804 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1805 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1806 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1807 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1808 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1809 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1810 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1811 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1812 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1813 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1814 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1815 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1816 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1817 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1818 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1819 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1820 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseErrorCode? Type1821 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseErrorEvent? Type1822 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseErrorEventType? Type1823 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFailedEvent? Type1824 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFailedEventType? Type1825 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1826 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1827 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1828 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1829 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1830 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1831 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1832 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1833 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1834 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1835 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatTextType? Type1836 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1837 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1838 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1839 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1840 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1841 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1842 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1843 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1844 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1845 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1846 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1847 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1848 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1849 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1850 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1851 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1852 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1853 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1854 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1855 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1856 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseItemList? Type1857 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseItemListObject? Type1858 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1859 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseLogProb? Type1860 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1861 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1862 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1863 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1864 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1865 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1866 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1867 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1868 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1869 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1870 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1871 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1872 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1873 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1874 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1875 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1876 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1877 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1878 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1879 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1880 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1881 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1882 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1883 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1884 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1885 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1886 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseTextParam? Type1887 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceParam? Type1888 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1889 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1890 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1891 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1892 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1893 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1894 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1895 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1896 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1897 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1898 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1899 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1900 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1901 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1902 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1903 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1904 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1905 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1906 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1907 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1908 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1909 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1910 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1911 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseStreamEvent? Type1912 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1913 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1914 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1915 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1916 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1917 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1918 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1919 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1920 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1921 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1922 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1923 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1924 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1925 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1926 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesClientEvent? Type1927 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type1928 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type1929 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type1930 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type1931 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesServerEvent? Type1932 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type1933 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RoleObject? Type1934 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RoleDeletedResource? Type1935 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type1936 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RoleListResource? Type1937 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RoleListResourceObject? Type1938 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1939 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type1940 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunGraderRequest? Type1941 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunGraderResponse? Type1942 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type1943 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type1944 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectObject? Type1945 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectStatus? Type1946 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type1947 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type1948 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type1949 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1950 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunToolCallObject? Type1951 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectLastError? Type1952 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type1953 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type1954 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type1955 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type1956 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaObject? Type1957 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type1958 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type1959 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1960 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type1961 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type1962 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type1963 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type1964 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type1965 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type1966 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type1967 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1968 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type1969 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type1970 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type1971 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type1972 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type1973 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type1974 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type1975 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type1976 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type1977 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type1978 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type1979 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type1980 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type1981 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type1982 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type1983 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type1984 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type1985 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type1986 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type1987 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type1988 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type1989 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type1990 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type1991 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type1992 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type1993 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type1994 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type1995 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type1996 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1997 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type1998 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1999 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2000 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2001 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2002 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2003 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2004 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2005 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2006 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObjectObject? Type2007 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObjectType? Type2008 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObjectStatus? Type2009 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2010 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2011 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2012 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2013 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2014 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2015 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2016 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2017 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2018 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2019 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2020 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2021 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2022 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2023 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2024 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2025 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2026 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2027 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2028 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2029 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2030 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2031 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2032 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2033 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2034 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2035 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2036 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2037 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2038 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2039 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2040 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2041 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2042 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2043 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2044 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2045 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2046 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunToolCallObjectType? Type2047 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2048 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2049 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2050 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2051 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2052 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2053 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2054 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2055 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2056 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2057 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2058 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2059 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2060 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadObject? Type2061 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadObjectObject? Type2062 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2063 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2064 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2065 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2066 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2067 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2068 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionTool? Type2069 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchTool? Type2070 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerTool? Type2071 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2072 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchTool? Type2073 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolParam? Type2074 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellToolParam? Type2075 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolParam? Type2076 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NamespaceToolParam? Type2077 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchToolParam? Type2078 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2079 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2080 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolDiscriminator? Type2081 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2082 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2083 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2084 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceCustom? Type2085 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2086 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2087 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2088 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceTypes? Type2089 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2090 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2091 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2092 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2093 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2094 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2095 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2096 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2097 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2098 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2099 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2100 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2101 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2102 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2103 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2104 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2105 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TruncationObjectType? Type2106 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateGroupBody? Type2107 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2108 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2109 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AllOf? Type2110 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2111 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Upload? Type2112 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UploadStatus? Type2113 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UploadObject? Type2114 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AllOf? Type2115 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2116 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UploadPart? Type2117 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UploadPartObject? Type2118 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2119 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2120 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2121 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2122 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2123 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2124 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2125 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2126 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2127 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2128 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesResult? Type2129 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2130 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsResult? Type2131 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2132 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageResponse? Type2133 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageResponseObject? Type2134 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2135 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageTimeBucket? Type2136 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2137 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2138 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2139 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.User? Type2140 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserObject? Type2141 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserRole? Type2142 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserDeleteResponse? Type2143 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2144 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserListResource? Type2145 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserListResourceObject? Type2146 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2147 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserListResponse? Type2148 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserListResponseObject? Type2149 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserRoleAssignment? Type2150 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2151 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2152 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type2153 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VadConfigType? Type2154 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2155 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2156 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2157 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2158 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2159 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2160 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2161 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2162 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2163 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2164 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2165 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2166 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2167 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2168 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2169 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2170 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2171 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2172 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2173 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2174 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2175 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type2176 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2177 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2178 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2179 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2180 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2181 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2182 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2183 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2184 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2185 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2186 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2187 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2188 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2189 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2190 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2191 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentResource? Type2192 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2193 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2194 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2195 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceResource? Type2196 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VoiceResourceObject? Type2197 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionFind? Type2198 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2199 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2200 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2201 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2202 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2203 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2204 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2205 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2206 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2207 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2208 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolType? Type2209 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2210 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2211 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2212 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2213 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2214 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2215 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2216 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2217 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2218 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2219 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2220 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2221 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2222 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2223 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2224 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2225 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2226 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2227 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2228 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2229 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2230 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2231 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2232 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2233 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2234 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2235 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2236 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2237 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2238 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2239 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2240 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2241 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2242 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2243 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2244 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2245 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2246 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2247 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2248 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2249 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2250 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2251 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2252 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2253 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2254 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2255 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2256 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2257 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2258 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2259 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2260 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2261 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2262 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2263 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2264 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2265 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2266 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2267 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2268 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2269 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2270 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2271 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2272 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2273 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2274 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2275 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2276 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2277 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2278 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2279 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2280 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2281 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InlineSkillParamType? Type2282 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2283 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2284 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2285 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2286 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageStatus? Type2287 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageRole? Type2288 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputTextContentType? Type2289 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileCitationBody? Type2290 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileCitationBodyType? Type2291 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlCitationBody? Type2292 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2293 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2294 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2295 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Annotation? Type2296 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2297 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TopLogProb? Type2298 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LogProb? Type2299 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2300 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputTextContentType? Type2301 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2302 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2303 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TextContent? Type2304 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TextContentType? Type2305 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SummaryTextContentType? Type2306 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2307 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RefusalContentType? Type2308 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageDetail? Type2309 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputImageContentType? Type2310 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2311 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2312 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputFileContentType? Type2313 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessagePhase2? Type2314 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageType? Type2315 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2316 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContentItem3? Type2317 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2318 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClickButtonType? Type2319 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClickParamType? Type2320 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DoubleClickActionType? Type2321 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CoordParam? Type2322 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DragParamType? Type2323 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2324 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.KeyPressActionType? Type2325 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.MoveParamType? Type2326 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ScreenshotParamType? Type2327 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ScrollParamType? Type2328 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TypeParamType? Type2329 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WaitParamType? Type2330 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2331 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchCallType? Type2332 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolType? Type2333 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RankerVersionType? Type2334 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.HybridSearchOptions? Type2335 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RankingOptions? Type2336 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Filters2? Type2337 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileSearchToolType? Type2338 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerToolType? Type2339 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerEnvironment? Type2340 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2341 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2342 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2343 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NetworkPolicy2? Type2344 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2345 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2346 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerAutoParam? Type2347 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2348 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NetworkPolicy3? Type2349 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2350 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2351 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillsItem2? Type2352 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2353 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalSkillParam? Type2354 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2355 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2356 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2357 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2358 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2359 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2360 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EnvironmentVariant1? Type2361 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2362 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomTextFormatParam? Type2363 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2364 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GrammarSyntax1? Type2365 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2366 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2367 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolParamType? Type2368 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Format2? Type2369 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2370 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EmptyModelParam? Type2371 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolParam? Type2372 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionToolParamType? Type2373 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NamespaceToolParamType? Type2374 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2375 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolsItem13? Type2376 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2377 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2378 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApproximateLocation? Type2379 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApproximateLocationType? Type2380 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SearchContextSize? Type2381 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SearchContentType? Type2382 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2383 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2384 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2385 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchOutputType? Type2386 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactionBodyType? Type2387 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2388 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2389 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellExecActionType? Type2390 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellAction? Type2391 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellCallStatus? Type2392 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2393 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2394 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerReferenceResource? Type2395 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2396 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallType? Type2397 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EnvironmentVariant12? Type2398 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2399 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LocalShellCallOutputStatusEnum? Type2400 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2401 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2402 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2403 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2404 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2405 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Outcome? Type2406 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2407 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2408 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2409 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2410 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2411 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2412 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2413 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2414 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2415 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2416 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2417 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Operation? Type2418 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2419 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2420 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2421 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DetailEnum? Type2422 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2423 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2424 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputTextContentParam? Type2425 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputTextContentParamType? Type2426 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2427 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2428 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputFileContentParam? Type2429 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InputFileContentParamType? Type2430 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2431 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? Type2432 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2433 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OutputVariant2Item? Type2434 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2435 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2436 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2437 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2438 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellActionParam? Type2439 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2440 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2441 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.EnvironmentVariant13? Type2442 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2443 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2444 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2445 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2446 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2447 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2448 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2449 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2450 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2451 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2452 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2453 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2454 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2455 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2456 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2457 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2458 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2459 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2460 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2461 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2462 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2463 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2464 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2465 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationResource? Type2466 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ConversationResourceObject? Type2467 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2468 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2469 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2470 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2471 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateConversationBody? Type2472 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateConversationBody? Type2473 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2474 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OrderEnum? Type2475 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoModel? Type2476 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoModelEnum? Type2477 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoStatus? Type2478 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoSize? Type2479 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Error2? Type2480 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoResource? Type2481 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoResourceObject? Type2482 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoListResource? Type2483 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoListResourceObject? Type2484 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2485 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ImageRefParam2? Type2486 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoSeconds? Type2487 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2488 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2489 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2490 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2491 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoCharacterResource? Type2492 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2493 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2494 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2495 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2496 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2497 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2498 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2499 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedVideoResource? Type2500 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2501 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.VideoContentVariant? Type2502 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2503 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TruncationEnum? Type2504 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TokenCountsBody? Type2505 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TokenCountsResource? Type2506 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2507 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2508 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemField? Type2509 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2510 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactResource? Type2511 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CompactResourceObject? Type2512 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2513 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillResource? Type2514 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillResourceObject? Type2515 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillListResource? Type2516 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillListResourceObject? Type2517 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2518 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSkillBody? Type2519 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, byte[]>? Type2520 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2521 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedSkillResource? Type2522 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2523 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillVersionResource? Type2524 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2525 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillVersionListResource? Type2526 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2527 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2528 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2529 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2530 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2531 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2532 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatkitWorkflow? Type2533 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2534 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2535 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionStatus? Type2536 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2537 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2538 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionHistory? Type2539 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2540 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionResource? Type2541 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2542 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WorkflowTracingParam? Type2543 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WorkflowParam? Type2544 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ExpiresAfterParam? Type2545 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2546 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RateLimitsParam? Type2547 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2548 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileUploadParam? Type2549 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.HistoryParam? Type2550 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2551 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatSessionBody? Type2552 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageInputText? Type2553 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageInputTextType? Type2554 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageQuotedText? Type2555 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2556 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AttachmentType? Type2557 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Attachment? Type2558 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ToolChoice8? Type2559 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.InferenceOptions? Type2560 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageItem? Type2561 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageItemObject? Type2562 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageItemType? Type2563 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2564 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ContentItem4? Type2565 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2566 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2567 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileAnnotationSource? Type2568 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2569 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileAnnotation? Type2570 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.FileAnnotationType? Type2571 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlAnnotationSource? Type2572 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2573 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlAnnotation? Type2574 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UrlAnnotationType? Type2575 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputText? Type2576 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputTextType? Type2577 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2578 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnnotationsItem3? Type2579 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2580 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantMessageItem? Type2581 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2582 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AssistantMessageItemType? Type2583 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2584 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WidgetMessageItem? Type2585 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2586 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WidgetMessageItemType? Type2587 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClientToolCallStatus? Type2588 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClientToolCallItem? Type2589 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2590 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClientToolCallItemType? Type2591 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskType? Type2592 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskItem? Type2593 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskItemObject? Type2594 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskItemType? Type2595 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskGroupTask? Type2596 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskGroupItem? Type2597 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskGroupItemObject? Type2598 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.TaskGroupItemType? Type2599 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2600 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadItem? Type2601 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2602 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadItemListResource? Type2603 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2604 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2605 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ActiveStatus? Type2606 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ActiveStatusType? Type2607 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LockedStatus? Type2608 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.LockedStatusType? Type2609 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClosedStatus? Type2610 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ClosedStatusType? Type2611 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadResource? Type2612 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadResourceObject? Type2613 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Status? Type2614 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2615 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedThreadResource? Type2616 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2617 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadListResource? Type2618 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ThreadListResourceObject? Type2619 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2620 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DragPoint? Type2621 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequest? Type2622 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2623 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2624 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2625 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2626 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateEvalRequest? Type2627 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2628 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAssistantsOrder? Type2629 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2630 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2631 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListContainersOrder? Type2632 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2633 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2634 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrder? Type2635 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2636 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2637 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2638 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2639 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2640 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesOrder? Type2641 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2642 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2643 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2644 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2645 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2646 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2647 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2648 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2649 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2650 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2651 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListGroupsOrder? Type2652 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2653 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2654 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2655 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2656 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRolesOrder? Type2657 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2658 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2659 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2660 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2661 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2662 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2663 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2664 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2665 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2666 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2667 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2668 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2669 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2670 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2671 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2672 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2673 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2674 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type2675 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2676 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type2677 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2678 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2679 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2680 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2681 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2682 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2683 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2684 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2685 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2686 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2687 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2688 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2689 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type2690 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type2691 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type2692 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2693 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2694 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type2695 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2696 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2697 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2698 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2699 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2700 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2701 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2702 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2703 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2704 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2705 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type2706 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2707 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2708 { get; set; } + + /// + /// + /// + public global::System.Collections.Generic.List? ListType0 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType1 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType2 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType3 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType4 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType5 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType6 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType7 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType8 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType9 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType10 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType11 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType12 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType13 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType14 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType15 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType16 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType17 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType18 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType19 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType20 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType21 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType23 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType24 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType25 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType26 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType27 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType29 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>>? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType35 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType36 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType37 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType38 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType39 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType40 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType43 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>>? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType47 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType48 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType49 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType50 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType51 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType52 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType53 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType54 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType55 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType56 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType57 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType58 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType59 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf>? ListType60 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType61 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>>? ListType62 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType63 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType64 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType65 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType66 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType67 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType68 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType69 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType70 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType71 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType72 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType73 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType74 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType75 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType76 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType77 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType78 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType79 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType80 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType81 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType82 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType83 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType84 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType85 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType86 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType87 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType88 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType89 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType90 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType91 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType92 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType93 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType94 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType95 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType96 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType97 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType98 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType99 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType100 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType101 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType102 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType103 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType104 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType105 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType106 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType107 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType108 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType109 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType110 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType111 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType112 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType113 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType114 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType115 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType116 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType117 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType118 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType119 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType120 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType121 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType122 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType123 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType124 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType125 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType126 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType127 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType128 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType129 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType130 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType131 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType132 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType133 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? ListType134 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType135 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType136 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType137 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType138 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType139 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType140 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType141 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType142 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType143 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType144 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType145 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType146 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType147 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType148 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType149 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType150 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType151 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType152 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType153 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType154 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType155 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType156 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType157 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType158 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType159 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType160 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType161 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType162 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType163 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType164 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType165 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType166 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType167 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType168 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType169 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType170 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType171 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType172 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType173 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType174 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType175 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType176 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType177 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType178 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType179 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType180 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType181 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType182 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType183 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType184 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType185 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType186 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType187 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType188 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType189 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType190 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType191 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType192 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType193 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType194 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType195 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType196 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType197 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType198 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType199 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType200 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType201 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType202 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType203 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType204 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType205 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType206 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType207 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType208 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType209 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf>? ListType210 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType211 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType212 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType213 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType214 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType215 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf, byte[]>? ListType216 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType217 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType218 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType219 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType220 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType221 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType222 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType223 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType224 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType225 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType226 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType227 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType228 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType229 { 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::System.Collections.Generic.List? ListType238 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType239 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType240 { get; set; } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs index 54cb1e9d4..c4b1c2200 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteAFineTunedModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteModelResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteModelResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteAFineTunedModelResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteModelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs index 5384986e5..38002121f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs @@ -101,7 +101,7 @@ partial void ProcessListModelsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListModelsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListModelsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -131,7 +131,7 @@ partial void ProcessListModelsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListModelsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListModelsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs index dc763eef6..22b5dfc65 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Model17.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Model17.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveModelResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Model17.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Model17.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs index 20807049a..90714c486 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModelsClient : global::tryAGI.OpenAI.IModelsClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs index 382cc883f..f9d65bcf9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateModerationResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateModerationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CreateModerationResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CreateModerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateModerationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CreateModerationResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CreateModerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs index 0c2b52945..f2f839157 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModerationsClient : global::tryAGI.OpenAI.IModeratio /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs index 67bf550ab..dba380e88 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs @@ -110,7 +110,7 @@ partial void ProcessCancelChatSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessCancelChatSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs index 26ad1bcb5..58dfb8c11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs @@ -68,7 +68,7 @@ partial void ProcessCompactAResponseResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCompactAResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.CompactResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.CompactResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCompactAResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.CompactResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.CompactResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs index 5de061dd7..574ee80f4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs index beea2eebb..1401c019c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateChatKitSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateChatKitSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ChatSessionResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateChatKitSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ChatSessionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs index 142facfdb..44c29058b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateContainerResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateContainerResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateContainerResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs index 9ce2d9975..a5f015383 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateContainerFileResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessCreateContainerFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateContainerFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs index 804f587fd..0fe6eada4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs @@ -110,7 +110,7 @@ partial void ProcessDeleteAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessDeleteAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKeysDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs index 3da978679..16c6f5ce6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteChatKitThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedThreadResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedThreadResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteChatKitThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedThreadResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedThreadResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs index 36519c52d..7b89f61c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs @@ -68,7 +68,7 @@ partial void ProcessGetInputTokenCountsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessGetInputTokenCountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.TokenCountsResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.TokenCountsResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGetInputTokenCountsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.TokenCountsResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.TokenCountsResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs index d9a780175..d86d98343 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs @@ -133,7 +133,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ApiKeyList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ApiKeyList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ApiKeyList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ApiKeyList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs index f66e65cac..6a75d435b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs @@ -143,7 +143,7 @@ partial void ProcessListChatKitThreadItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadItemListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadItemListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -173,7 +173,7 @@ partial void ProcessListChatKitThreadItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadItemListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadItemListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs index db3fab187..739ea051f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs @@ -144,7 +144,7 @@ partial void ProcessListChatKitThreadsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessListChatKitThreadsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs index fcf5ae3d9..535e8612a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs @@ -135,7 +135,7 @@ partial void ProcessListContainerFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerFileListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListContainerFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs index 3ba6fea0c..903627aa0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs @@ -136,7 +136,7 @@ partial void ProcessListContainersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListContainersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs index 961531175..306e68d7c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs @@ -110,7 +110,7 @@ partial void ProcessRetrieveAdminApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.AdminApiKey.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessRetrieveAdminApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AdminApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs index ba68a5029..f3bed57dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveChatKitThreadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ThreadResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ThreadResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveChatKitThreadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ThreadResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ThreadResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs index 6294c5499..c9ec7c2a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs @@ -108,7 +108,7 @@ partial void ProcessRetrieveContainerResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRetrieveContainerResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs index 54486f800..7200505fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs @@ -114,7 +114,7 @@ partial void ProcessRetrieveContainerFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ContainerFileResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveContainerFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ContainerFileResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) 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 386460aaf..8a6a2801e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.g.cs @@ -34,2364 +34,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, /// /// /// - #pragma warning disable CS0618 // Type or member is obsolete - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions - { - PropertyNameCaseInsensitive = true, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = - { - new global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsCodeTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantToolsFunctionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AuditLogEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AutoChunkingStrategyRequestParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CertificateObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CertificateObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsModeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionAllowedToolsChoiceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionDeletedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageCustomToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartFileTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartImageImageUrlDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageAnnotationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionResponseMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionStreamResponseDeltaRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CostsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CostsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseChoiceFinishReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseChoiceFinishReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalCustomDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalJsonlRunDataSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalLabelModelGraderTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalLogsDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersNEpochsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestIntegrationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageEditRequestQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestModerationNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageRequestStyleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateImageVariationRequestSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestTimestampGranularitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatTextFormatTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntaxNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteAssistantResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteCertificateResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteFileResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteFineTuningCheckpointPermissionResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteMessageResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteThreadResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EasyInputMessageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamQuality2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamInputFidelity2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamSize2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamOutputFormat2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamModeration2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EditImageBodyJsonParamBackground2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EmbeddingObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ErrorEventEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ErrorEventEventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemContentOutputTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemInputImageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileContentSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalJsonlFileIdSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalRunOutputItemListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsDataSourceConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalStoredCompletionsSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FilePathTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FilePathTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchRankerJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchRankerNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBetaNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersBatchSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersLearningRateMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneDPOHyperparametersNEpochsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneMethodTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersBatchSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersLearningRateMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersNEpochsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersReasoningEffortNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersComputeMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalIntervalNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneReinforcementHyperparametersEvalSamplesNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersBatchSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersLearningRateMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneSupervisedHyperparametersNEpochsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningCheckpointPermissionObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningIntegrationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersBatchSizeVariant1NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersLearningRateMultiplierNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobHyperparametersNEpochsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobCheckpointObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderLabelModelTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderMultiTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderPythonTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderScoreModelTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderStringCheckOperationNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupDeletedResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupRoleAssignmentObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupUserAssignmentObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GroupUserDeletedResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImagesResponseQualityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputAudioTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputAudioTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteProjectRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteDeleteResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListCertificatesResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobCheckpointsResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningJobEventsResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolCallOutputStatus2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalRequestTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPApprovalResponseResourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPListToolsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolConnectorIdNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolRequireApprovalVariant1Enum2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageFileObjectImageFileDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentImageUrlObjectImageUrlDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentRefusalObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageContentTextObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageFileObjectImageFileDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentImageUrlObjectImageUrlDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentRefusalObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaContentTextObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageDeltaObjectDeltaRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectIncompleteDetailsReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageObjectRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessagePhaseJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessagePhaseNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant1EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant2EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant3EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant4EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelResponsePropertiesPromptCacheRetention2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFileObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFilePurposeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OpenAIFileStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyOwnerTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyDeleteResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectApiKeyListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectCreateRequestGeographyNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupDeletedResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectGroupListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectRateLimitListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountApiKeyObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountCreateResponseRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountDeleteResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectServiceAccountListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserCreateRequestRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserDeleteResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ProjectUserUpdateRequestRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.PublicRoleListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmAudioFormatTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmuAudioFormatTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemRetrieveTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventOutputAudioBufferClearTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemContentItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPHTTPErrorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPListToolsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPProtocolErrorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolExecutionErrorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusDetailsReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseOutputModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemRetrievedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventErrorTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferDtmfEventReceivedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventMCPListToolsInProgressTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferClearedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStartedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventOutputAudioBufferStoppedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDonePartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseMCPCallInProgressTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionInputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionOutputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTracingTracingConfigurationEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxResponseOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionIncludeVariant1ItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAOutputModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAModelNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGATracingTracingConfigurationEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseGAMaxOutputTokensNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningEffortEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3ObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3StatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseVariant3IncompleteDetailsReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseAudioTranscriptDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCodeDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCodeInterpreterCallInterpretingEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartAddedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseContentPartDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCreatedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseCustomToolCallInputDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseErrorCodeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseErrorEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFailedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFileSearchCallSearchingEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextGrammarTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatTextPythonTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFunctionCallArgumentsDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallGeneratingEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseImageGenCallPartialImageEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseIncompleteEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseItemListObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallArgumentsDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallFailedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPCallInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsFailedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseMCPListToolsInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseModalitiesVariant1ItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemAddedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputItemDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsePropertiesTruncation2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartDoneEventPartTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallCompletedEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateVariant1TypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleDeletedResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RoleListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectLastErrorCodeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunObjectIncompleteDetailsReasonNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsMessageCreationObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFileSearchResultObjectContentItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepObjectLastErrorCodeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant1EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant3EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant4EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant5EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant6EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant7EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant1EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant2EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant3EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant4EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant5EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant6EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant7EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant8EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant9EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventVariant10EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ServiceTierEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpeechAudioDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatJsonSchemaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceCustomTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceFunctionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceMCPTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceOptionsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceTypesTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDeltaEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextDoneEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextSegmentEventTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageDurationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptTextUsageTokensTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionDiarizedSegmentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TruncationObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadPartObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserDeleteResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserListResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleAssignmentObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserRoleUpdateRequestRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VadConfigTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VadConfigTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreExpirationAfterAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileBatchObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileContentResponseObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchRequestRankingOptionsRankerNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultContentObjectTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VectorStoreSearchResultsPageObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VerbosityEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VerbosityEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentDeletedResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceConsentResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionFindTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionOpenPageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchActionSearchSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchApproximateLocationWebSearchApproximateLocation1TypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolSearchContextSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchExpiredTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookBatchFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunCanceledTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookEvalRunSucceededTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobCancelledTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookFineTuningJobSucceededTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookRealtimeCallIncomingTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCancelledTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseCompletedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseFailedTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebhookResponseIncompleteTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillReferenceParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillSourceParamMediaTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InlineSkillParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyDisabledParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerNetworkPolicyAllowlistParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.IncludeEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.IncludeEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageRoleJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageRoleNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputTextContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileCitationBodyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TextContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TextContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SummaryTextContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ReasoningTextContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RefusalContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageDetailJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageDetailNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputImageContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFileContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessagePhase2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessagePhase2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClickButtonTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClickParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClickParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DoubleClickActionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DragParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DragParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.KeyPressActionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MoveParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MoveParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ScreenshotParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ScrollParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TypeParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TypeParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WaitParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WaitParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchExecutionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RankerVersionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileSearchToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SearchContextSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SearchContextSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SearchContentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SearchContentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchPreviewToolTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactionBodyTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputLogsTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterOutputImageTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellExecActionTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentResourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LocalShellCallOutputStatusEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MCPToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DetailEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DetailEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallItemStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputTextContentParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputImageContentParamAutoParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactionSummaryItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputItemParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ItemReferenceParamType2NullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpecificApplyPatchParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SpecificFunctionShellParamTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedConversationResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OrderEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OrderEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoModelEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoModelEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoSecondsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoSecondsNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedVideoResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoContentVariantJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoContentVariantNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TruncationEnumJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TruncationEnumNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedSkillResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillVersionResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillVersionListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedSkillVersionResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatSessionStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatSessionResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ExpiresAfterParamAnchorNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageInputTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageQuotedTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AttachmentTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AttachmentTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationSourceTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WidgetMessageItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClientToolCallItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.LockedStatusTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestCompletionWindowNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListAssistantsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListChatCompletionsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetChatCompletionMessagesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListContainersOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListContainersOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListContainerFilesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListConversationItemsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListEvalsOrderByNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunsStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsStatusNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetEvalRunOutputItemsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFineTuningCheckpointPermissionsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysListOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListOrganizationCertificatesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetCertificateIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCostsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCostsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupRoleAssignmentsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListGroupUsersOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectCertificatesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRolesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRolesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageCompletionsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageEmbeddingsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesSourceNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesSizeNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageImagesGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageModerationsGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresBucketWidthNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresGroupByItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListUserRoleAssignmentsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectGroupRoleAssignmentsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectRolesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListProjectUserRoleAssignmentsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListInputItemsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListMessagesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateRunIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunStepsOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListRunStepsIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.GetRunStepIncludeItemNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoresOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListFilesInVectorStoreBatchFilterNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesOrderNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterNullableJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPartJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPartJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputsVariant1ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FiltersItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerActionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.Content5JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ConversationParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseFormatJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillsItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NetworkPolicyJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateEvalItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateModelResponsePropertiesJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.CustomToolCallResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.DeletedConversationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalGraderLabelModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalGraderPythonJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalGraderScoreModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalGraderStringCheckJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarityJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemContentJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EvalItemContentItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputMessageResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.InputParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ItemResourceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.MessageStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsCompactionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputContentJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputMessageContentJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreateJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ResponsesServerEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.RunStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolChoiceParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoiceJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContentItem3JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.Filters2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.NetworkPolicy3JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.SkillsItem2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant1JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.Format2JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ToolsItem13JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant12JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutcomeJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OutputVariant2ItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.EnvironmentVariant13JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.VideoModelJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ItemFieldJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ContentItem4JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnnotationsItem3JsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.ThreadItemJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.StatusJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolFilter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, byte[]>(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter(), - new global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter(), - } - }; - #pragma warning restore CS0618 // Type or member is obsolete + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// @@ -2400,7 +43,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AssistantsClient Assistants => new AssistantsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2409,7 +52,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AudioClient Audio => new AudioClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2418,7 +61,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public AuditLogsClient AuditLogs => new AuditLogsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2427,7 +70,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public BatchClient Batch => new BatchClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2436,7 +79,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public CertificatesClient Certificates => new CertificatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2445,7 +88,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ChatClient Chat => new ChatClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2454,7 +97,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public CompletionsClient Completions => new CompletionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2463,7 +106,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ConversationsClient Conversations => new ConversationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2472,7 +115,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public EmbeddingsClient Embeddings => new EmbeddingsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2481,7 +124,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public EvalsClient Evals => new EvalsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2490,7 +133,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public FilesClient Files => new FilesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2499,7 +142,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public FineTuningClient FineTuning => new FineTuningClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2508,7 +151,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupOrganizationRoleAssignmentsClient GroupOrganizationRoleAssignments => new GroupOrganizationRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2517,7 +160,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupUsersClient GroupUsers => new GroupUsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2526,7 +169,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public GroupsClient Groups => new GroupsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2535,7 +178,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ImagesClient Images => new ImagesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2544,7 +187,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public InvitesClient Invites => new InvitesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2553,7 +196,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ModelsClient Models => new ModelsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2562,7 +205,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ModerationsClient Moderations => new ModerationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2571,7 +214,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectGroupRoleAssignmentsClient ProjectGroupRoleAssignments => new ProjectGroupRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2580,7 +223,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectGroupsClient ProjectGroups => new ProjectGroupsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2589,7 +232,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectUserRoleAssignmentsClient ProjectUserRoleAssignments => new ProjectUserRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2598,7 +241,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2607,7 +250,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public RealtimeClient Realtime => new RealtimeClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2616,7 +259,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public ResponsesClient Responses => new ResponsesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2625,7 +268,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public RolesClient Roles => new RolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2634,7 +277,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public SkillsClient Skills => new SkillsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2643,7 +286,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UploadsClient Uploads => new UploadsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2652,7 +295,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UsageClient Usage => new UsageClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2661,7 +304,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UserOrganizationRoleAssignmentsClient UserOrganizationRoleAssignments => new UserOrganizationRoleAssignmentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2670,7 +313,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public UsersClient Users => new UsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2679,7 +322,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public VectorStoresClient VectorStores => new VectorStoresClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -2688,7 +331,7 @@ public sealed partial class OpenAiClient : global::tryAGI.OpenAI.IOpenAiClient, public VideosClient Videos => new VideosClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Polyfills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Polyfills.g.cs index c8803d2ce..c089870cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Polyfills.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Polyfills.g.cs @@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills /// /// Creates a JSON request content instance. /// +#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.Net.Http.HttpContent CreateJsonContent( T inputValue, string mediaType, @@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills /// /// Reads JSON content into the specified type using serializer options. /// +#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 async global::System.Threading.Tasks.Task ReadFromJsonAsync( this global::System.Net.Http.HttpContent content, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs index ab128deda..f9acdb851 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs @@ -77,7 +77,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.GroupRoleAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.GroupRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs index 710769e2e..fa85f557f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs @@ -136,7 +136,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs index a6d12cfa1..dacbba5ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs @@ -119,7 +119,7 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs index bc4a27060..bb459ca09 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectGroupRoleAssignmentsClient : global::tryAGI.O /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs index d623f0fa1..4574c900b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs @@ -72,7 +72,7 @@ partial void ProcessAddProjectGroupResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAddProjectGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroup.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectGroup.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessAddProjectGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroup.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroup.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs index b1501996f..feb0058c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectGroupsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroupListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectGroupListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListProjectGroupsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroupListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroupListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs index 4f784d178..43b1304be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs @@ -113,7 +113,7 @@ partial void ProcessRemoveProjectGroupResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRemoveProjectGroupResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectGroupDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs index 07e7e2222..470cdff5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectGroupsClient : global::tryAGI.OpenAI.IProject /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs index 75ce914f9..b7e3a169a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs @@ -77,7 +77,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs index e24d5ee7b..c160ec08c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs @@ -136,7 +136,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs index edcae30d1..1b1b1ba79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs @@ -119,7 +119,7 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs index c3632297f..7db65014e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectUserRoleAssignmentsClient : global::tryAGI.Op /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs index 845d88d2b..aed558399 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs @@ -107,7 +107,7 @@ partial void ProcessArchiveProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessArchiveProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs index b11bfe04e..67e01a691 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs index a201957bb..548ed0a23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateProjectServiceAccountResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -190,7 +190,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs index 00ea9d315..8b53805ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -190,7 +190,7 @@ partial void ProcessCreateProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs index dc15ac44d..919fd759b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs @@ -103,13 +103,13 @@ partial void ProcessDeleteProjectApiKeyResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -183,7 +183,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs index 5f4cda725..10b99c2c0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs @@ -115,7 +115,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs index 538735cd3..7fa68eb4f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs @@ -103,13 +103,13 @@ partial void ProcessDeleteProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessDeleteProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -183,7 +183,7 @@ partial void ProcessDeleteProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs index f993a49b9..fc20e1fe8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs @@ -125,7 +125,7 @@ partial void ProcessListProjectApiKeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessListProjectApiKeysResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs index 8090a5ab5..b741025fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs @@ -132,7 +132,7 @@ partial void ProcessListProjectRateLimitsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessListProjectRateLimitsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectRateLimitListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs index 2284b88ac..910180669 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs @@ -113,13 +113,13 @@ partial void ProcessListProjectServiceAccountsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -193,7 +193,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccountListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs index ac1fb6f2a..9e95ca719 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs @@ -113,13 +113,13 @@ partial void ProcessListProjectUsersResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListProjectUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUserListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectUserListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -193,7 +193,7 @@ partial void ProcessListProjectUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUserListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUserListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs index 2f3696a84..c8886e135 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs @@ -128,7 +128,7 @@ partial void ProcessListProjectsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListProjectsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs index 58fa1ffef..81ce7fbeb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyProjectResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessModifyProjectResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessModifyProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -190,7 +190,7 @@ partial void ProcessModifyProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs index 8039c3c24..4ee322795 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,13 +116,13 @@ partial void ProcessModifyProjectRateLimitResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectRateLimit.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectRateLimit.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -196,7 +196,7 @@ partial void ProcessModifyProjectRateLimitResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectRateLimit.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectRateLimit.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs index 236fd7809..700f06928 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs @@ -77,7 +77,7 @@ partial void ProcessModifyProjectUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,13 +116,13 @@ partial void ProcessModifyProjectUserResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerOptions); + __value_400 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessModifyProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -196,7 +196,7 @@ partial void ProcessModifyProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs index 23618131b..c4bb70100 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Project.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveProjectResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Project.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs index 1dad38d40..8112eff98 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectApiKey.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectApiKey.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs index d47b2194f..6244e866c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectServiceAccount.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectServiceAccount.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectServiceAccount.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectServiceAccount.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs index dd4a397f0..2290284f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessRetrieveProjectUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ProjectUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessRetrieveProjectUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ProjectUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs index b14e8547c..3bfd65132 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectsClient : global::tryAGI.OpenAI.IProjectsClie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Polyfills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Polyfills.g.cs index 64424aca6..33fb2f24f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Polyfills.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Polyfills.g.cs @@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills /// /// Creates a JSON request content instance. /// +#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.Net.Http.HttpContent CreateJsonContent( T inputValue, string mediaType, @@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills /// /// Reads JSON content into the specified type using serializer options. /// +#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 async global::System.Threading.Tasks.Task ReadFromJsonAsync( this global::System.Net.Http.HttpContent content, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs index 2791106ee..e1b6dd6c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs @@ -68,7 +68,7 @@ partial void ProcessAcceptCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs index 6229dd483..8be298e37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs @@ -75,7 +75,7 @@ partial void ProcessCreateClientSecretResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessCreateClientSecretResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateClientSecretResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs index 78808f989..d0335ff72 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs index c1f75eb39..1dd1ed0ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs index a1afe5615..3e0e5233c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs @@ -67,7 +67,7 @@ partial void ProcessReferCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs index b29db8241..d67320324 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs @@ -67,7 +67,7 @@ partial void ProcessRejectCallResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs index 3ad672fea..d98193b07 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RealtimeClient : global::tryAGI.OpenAI.IRealtimeClie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs index a70571bd6..d9131d201 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs @@ -99,13 +99,13 @@ partial void ProcessCancelAResponseResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessCancelAResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessCancelAResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs index b812baa47..cbd75a656 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs @@ -71,7 +71,7 @@ partial void ProcessCreateAModelResponseResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -120,7 +120,7 @@ partial void ProcessCreateAModelResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessCreateAModelResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs index 7e42ffde8..781587beb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs @@ -66,7 +66,7 @@ partial void ProcessCreateAModelResponseAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -140,7 +140,7 @@ partial void ProcessCreateAModelResponseAsStreamResponse( yield break; } - var __streamedResponse = global::tryAGI.OpenAI.ResponseStreamEvent.FromJson(__content, JsonSerializerOptions) ?? + var __streamedResponse = global::tryAGI.OpenAI.ResponseStreamEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::tryAGI.OpenAI.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs index 98162ba55..7918d83a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs @@ -92,13 +92,13 @@ partial void ProcessDeleteAModelResponseResponse( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerOptions); + __value_404 = global::tryAGI.OpenAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs index 43331f060..c48984bf3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs @@ -139,7 +139,7 @@ partial void ProcessGetAModelResponseResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Response.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessGetAModelResponseResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs index 2698f1328..36fc4ccdb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs @@ -139,7 +139,7 @@ partial void ProcessListInputItemsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ResponseItemList.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ResponseItemList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessListInputItemsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ResponseItemList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ResponseItemList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs index b597947d5..f42cf93a6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ResponsesClient : global::tryAGI.OpenAI.IResponsesCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs index f30e1578a..f3ed215a6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs index 338c571f8..5fcc7c505 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs @@ -72,7 +72,7 @@ partial void ProcessCreateProjectRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs index baba56364..3578537f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs index 429b1b1a9..be5d408f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleDeletedResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessDeleteProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleDeletedResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs index 09c521ee5..71951a7ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs @@ -128,7 +128,7 @@ partial void ProcessListOrganizationRolesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessListOrganizationRolesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs index 39744baa7..52cba09bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs @@ -134,7 +134,7 @@ partial void ProcessListProjectRolesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.PublicRoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListProjectRolesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.PublicRoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs index ee240e184..8afda66da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs index ccc07a9db..12066b737 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs @@ -77,7 +77,7 @@ partial void ProcessUpdateProjectRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessUpdateProjectRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Role.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessUpdateProjectRoleResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Role.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs index c3af25e28..6e37f72a7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RolesClient : global::tryAGI.OpenAI.IRolesClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs index c44aa09b5..f0b7d7b12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs @@ -115,7 +115,7 @@ partial void ProcessCreateSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessCreateSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs index d823a2505..adae36ed0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs @@ -133,7 +133,7 @@ partial void ProcessCreateSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs index e54738b4a..0669070fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedSkillResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedSkillResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedSkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedSkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs index 042cf3d3e..34a35412d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs @@ -117,7 +117,7 @@ partial void ProcessDeleteSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessDeleteSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedSkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs index 6fdb1bf72..faf5888ba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs @@ -109,7 +109,7 @@ partial void ProcessGetSkillResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetSkillResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs index c19104deb..19259508b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs @@ -117,7 +117,7 @@ partial void ProcessGetSkillVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillVersionResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGetSkillVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs index e5c1224a1..128df6a57 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs @@ -134,7 +134,7 @@ partial void ProcessListSkillVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillVersionListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillVersionListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessListSkillVersionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillVersionListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillVersionListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs index a3e077df4..22b333231 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs @@ -126,7 +126,7 @@ partial void ProcessListSkillsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListSkillsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs index b7c3fdc47..5fe9e6be6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.SkillResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.SkillResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs index 95bd03003..963f64a4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SkillsClient : global::tryAGI.OpenAI.ISkillsClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs index bbec957f9..d4fad4e71 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs @@ -134,7 +134,7 @@ partial void ProcessAddUploadPartResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UploadPart.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UploadPart.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessAddUploadPartResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UploadPart.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UploadPart.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs index 001cdb9d9..f18b6f8b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs @@ -110,7 +110,7 @@ partial void ProcessCancelUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessCancelUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs index 8f73646b7..53076c4e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs @@ -78,7 +78,7 @@ partial void ProcessCompleteUploadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessCompleteUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessCompleteUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs index cdfe64f07..1d6680239 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs @@ -81,7 +81,7 @@ partial void ProcessCreateUploadResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -130,7 +130,7 @@ partial void ProcessCreateUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.Upload.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateUploadResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Upload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs index 2d4e33705..ecff3248e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.g.cs @@ -34,7 +34,7 @@ public sealed partial class UploadsClient : global::tryAGI.OpenAI.IUploadsClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs index 7d917e455..2ad59d805 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs @@ -175,7 +175,7 @@ partial void ProcessAudioSpeechesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -205,7 +205,7 @@ partial void ProcessAudioSpeechesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs index 7e8c3cacc..156ae5884 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs @@ -175,7 +175,7 @@ partial void ProcessAudioTranscriptionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -205,7 +205,7 @@ partial void ProcessAudioTranscriptionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs index 78598c89e..21719ab93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs @@ -154,7 +154,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs index 111853c39..2efd437a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs @@ -182,7 +182,7 @@ partial void ProcessCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -212,7 +212,7 @@ partial void ProcessCompletionsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs index 875b285fe..790d1e0cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs @@ -156,7 +156,7 @@ partial void ProcessCostsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessCostsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs index eb68e28b5..2555531d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs @@ -175,7 +175,7 @@ partial void ProcessEmbeddingsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -205,7 +205,7 @@ partial void ProcessEmbeddingsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs index dc86b9276..67146861c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs @@ -189,7 +189,7 @@ partial void ProcessImagesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -219,7 +219,7 @@ partial void ProcessImagesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs index 4e0041e20..ee09e8a2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs @@ -175,7 +175,7 @@ partial void ProcessModerationsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -205,7 +205,7 @@ partial void ProcessModerationsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs index c77d0c84e..e413fa96b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs @@ -154,7 +154,7 @@ partial void ProcessVectorStoresResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UsageResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessVectorStoresResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs index df57306d2..fcb80a22a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UsageClient : global::tryAGI.OpenAI.IUsageClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs index 1525db416..c66502a3f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UserRoleAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserRoleAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs index 02c1a9e15..de05c9b04 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs @@ -130,7 +130,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.RoleListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.RoleListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs index f84f0bf73..b9e494c51 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs @@ -113,7 +113,7 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedRoleAssignmentResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs index 95be85f96..57caad4cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UserOrganizationRoleAssignmentsClient : global::tryA /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs index 485d316ab..62d84218c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UserDeleteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs index 969d51549..067e76a18 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs @@ -126,7 +126,7 @@ partial void ProcessListUsersResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.UserListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.UserListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListUsersResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.UserListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.UserListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs index d68870498..b851597af 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessModifyUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs index 51cede27a..8a6068ade 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.User.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveUserResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.User.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs index 7b6635260..710f57039 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UsersClient : global::tryAGI.OpenAI.IUsersClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs index dab0a8c51..028b63a6f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs @@ -113,7 +113,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs index 115f101f4..0eb4091d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs @@ -67,7 +67,7 @@ partial void ProcessCreateVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -116,7 +116,7 @@ partial void ProcessCreateVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessCreateVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs index 995db489f..09c0c0991 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs @@ -76,7 +76,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -126,7 +126,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs index 2dfe47d15..06465b19f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs @@ -77,7 +77,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs index fea533136..f1283ed14 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs @@ -107,7 +107,7 @@ partial void ProcessDeleteVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessDeleteVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteVectorStoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs index 187ac1816..8b853d145 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs @@ -113,7 +113,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeleteVectorStoreFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs index f25b6f52d..4e68e42d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs @@ -148,7 +148,7 @@ partial void ProcessListVectorStoreFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -178,7 +178,7 @@ partial void ProcessListVectorStoreFilesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs index 7da638938..6fd5985f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs @@ -154,7 +154,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoreFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs index e7294fc01..732d00101 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs @@ -135,7 +135,7 @@ partial void ProcessListVectorStoresResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.ListVectorStoresResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.ListVectorStoresResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessListVectorStoresResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.ListVectorStoresResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.ListVectorStoresResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs index 6e3e26760..4221079c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs @@ -72,7 +72,7 @@ partial void ProcessModifyVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessModifyVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessModifyVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs index e87bbaf4b..3dab84d51 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs @@ -107,7 +107,7 @@ partial void ProcessRetrieveVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessRetrieveVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs index 94ca56597..9fd9aa883 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessRetrieveVectorStoreFileResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs index 76f87f32d..1e9fa72ee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileBatchObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs index 6faecd7aa..29a165923 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs @@ -117,7 +117,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileContentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs index d0c846a55..92d4b777e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs @@ -74,7 +74,7 @@ partial void ProcessSearchVectorStoreResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessSearchVectorStoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessSearchVectorStoreResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreSearchResultsPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs index 451e67153..6482c0520 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs @@ -81,7 +81,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VectorStoreFileObject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VectorStoreFileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs index 145964aea..6598c8c16 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VectorStoresClient : global::tryAGI.OpenAI.IVectorSt /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs index 8be049c43..a59706a61 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs @@ -143,7 +143,7 @@ partial void ProcessCreateVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -173,7 +173,7 @@ partial void ProcessCreateVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs index 005b58037..950b6d33c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs @@ -124,7 +124,7 @@ partial void ProcessCreateVideoCharacterResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateVideoCharacterResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs index b446b155c..f050ade16 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs @@ -118,7 +118,7 @@ partial void ProcessCreateVideoEditResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateVideoEditResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs index 03d7bc8b9..c020106b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs @@ -121,7 +121,7 @@ partial void ProcessCreateVideoExtendResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessCreateVideoExtendResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs index 20873f086..54129a75b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs @@ -109,7 +109,7 @@ partial void ProcessDeleteVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.DeletedVideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.DeletedVideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessDeleteVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.DeletedVideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.DeletedVideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs index 9052b4e03..6da7e22c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs @@ -109,7 +109,7 @@ partial void ProcessGetVideoCharacterResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoCharacterResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetVideoCharacterResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoCharacterResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs index 21d16e7c2..cbe87478d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs @@ -126,7 +126,7 @@ partial void ProcessListVideosResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoListResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoListResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListVideosResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoListResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoListResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs index f80bf90ce..eed487c03 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs @@ -126,7 +126,7 @@ partial void ProcessRemixVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessRemixVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs index c9ebf893e..1443da899 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs @@ -109,7 +109,7 @@ partial void ProcessRetrieveVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerOptions) ?? + global::tryAGI.OpenAI.VideoResource.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessRetrieveVideoResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.VideoResource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs index 26577cfa2..487d6084a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VideosClient : global::tryAGI.OpenAI.IVideosClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::tryAGI.OpenAI.SourceGenerationContext.Default; ///